Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live update while typing #76

Open
ChristophNiehoff opened this issue Jun 2, 2021 · 2 comments
Open

Live update while typing #76

ChristophNiehoff opened this issue Jun 2, 2021 · 2 comments

Comments

@ChristophNiehoff
Copy link
Collaborator

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.

@dehydr8
Copy link
Owner

dehydr8 commented Jun 3, 2021

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.

@ChristophNiehoff
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants