Feat: Add SessionDispatcher to send responses by username #272
Reference in New Issue
Block a user
Delete Branch "feat/session-dispatcher"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SessionDispatcher, a small helper used by the server to sendSuccessResponsemessages to a specific session identified by username and to broadcast responses to all players in a lobby.dispatchToUser(username, body)— resolves theUserby username, extracts theSessionId, builds aSuccessResponse, and dispatches it via the existing response pipeline; implementsbroadcastToLobby(lobby, body)— iterates lobby player names and callsdispatchToUser.mentioned in commit
a7de101be2