Server Networking (network-server)
This document explains thenetwork-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
- See Network Server API for the full list of available functions.
- For packet framing and terminator semantics, see Packet Framing.