Skip to main content

Server Networking (network-server)

This document explains the network-server package implementation and the APIs used from server-side code.

Overview

The server listens on configured ports and accepts client connections. A single server process can accept many clients, and typical responsibilities in a game are:
  • Accept reliable control messages from clients over the TCP/WebSocket channel.
  • Optionally establish RTCPeerConnections via WebSocket signaling to receive unreliable, unordered data channels for low-latency state updates.

Example

It works the same with UDP:

Notes