yasuki_web.websocket.GameRoom.add_player#
- async GameRoom.add_player(ws, user)[source]#
Seat a joining player (P1/P2), replay the room’s chat and log history, and announce them.
Seating binds to
user["id"]: a player already holding a seat (a second tab) attaches the new connection to that seat and is brought up to date privately, rather than taking another seat or re-announcing a join. A genuinely new player with no free seat (a backstop behind the room’s max-players cap) is told the table is full and left unseated.