elevation-of-privilege icon indicating copy to clipboard operation
elevation-of-privilege copied to clipboard

Live update while typing

Open ChristophNiehoff opened this issue 3 years ago • 2 comments

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.

ChristophNiehoff avatar Jun 02 '21 20:06 ChristophNiehoff

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.

dehydr8 avatar Jun 03 '21 07:06 dehydr8

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.

ChristophNiehoff avatar Jun 04 '21 11:06 ChristophNiehoff