mirror of
https://github.com/tiennm99/noitu.git
synced 2026-10-06 16:16:48 +00:00
PlayedWord.player_id was declared and read by the client but never set by the server, so a room of three or four never showed who played each word. The chain byline now comes from the room, with a producer-side test. The process also gains the ceilings it was missing: a cap on live rooms and on open sockets, a per-connection frame-rate limit so a payload-less frame is no longer free, and an opt-in trusted-proxy list so the join limiter can tell players apart behind the documented reverse proxy instead of putting them in one bucket. The typed word is sanitized before the engine stores it, since every seat is shown it; a room exiting on its idle clock releases the sessions still bound to it; the dictionary builder escapes its SQLite path like the store does and renames over the old database instead of deleting it first.
4 lines
93 B
Go
4 lines
93 B
Go
package wsapi
|
|
|
|
// roomCount lives in hub.go; tests use it to assert that a room was evicted.
|