elevation-of-privilege
elevation-of-privilege copied to clipboard
Live update while typing
When a player enters a threat, the other players only see the result when it is submitted. Maybe we could use the existing websocket to have kind of a live update for the other players while typing.
I have experimented with this earlier, it doesn't work properly. It works during development as the connection is made to localhost and the throughput is faster with minimal latency. When tested over a network, it would mess up the websocket connection as the full string gets transferred on every change to the input field.
This resulted in a broken websocket connection and no further updates were sent.
Yes, I just ran into the same issues. ;) Maybe it would be better to have the "live" update sent only each second or so to reduce the network throughput? I'll experiment with this a bit.