🔌 Socket Namespace
The server folder is a socket.io server. It handles all communication with users, where real-time communication is required (matchmaking, game in progress, etc.)
This socket.io server can have different namespaces. Rune Rising currently consists of two namespaces:
- Game Room: The pre-game lobby where users join other users to start a game and select their deck.
- Game: An active game where users are playing against each other.
See in the code.
A namespace consists of Server-to-Client events and Client-to-Server events.