ctm / mb2-doc

Mb2, poker software
https://devctm.com
7 stars 2 forks source link

Url refresh during break #1430

Closed ctm closed 4 months ago

ctm commented 4 months ago

Fix so jrx doesn't get a refresh during the break.

I told you about this behaviour a while back. During the breaks, it replays the last hand a few times by refreshing the window. I don't have auto-refresh add-ons running. Windows 11, Chrome browser.

He sent me a movie and it appears to drop about once a minute. I'll checkout the ping code.

ctm commented 4 months ago

Only the lobby has ping code. D'oh!

The solution is probably to push the ping code into ReconnectingWebSocket.

ctm commented 4 months ago

FWIW, wasm-sockets doesn't allow sending ping frames (nor does web_sys::WebSocket), so in the Lobby we've been sending Ping Requests, which are then handled by NickMapper, and which is also why we don't send them unless we're logged in.

Generalizing this to the Table will be slightly ugly.

ctm commented 4 months ago

Fixed. Deploying now. Turns out, it was easy after all.