section Networking API section

Description

SGF offers a low-level socket connection through the WebSocket protocol. This allows for real time networking inside your game. All game clients MUST implement Client, but only capable game clients should implement Server.

Classes

  • Client

    Connects to remote instances of Server, or any other compliant WebSocket server.

  • Server

    Acts as a server to maintain connections between multiple instances of your game (and possibly even different game engines!).