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

Refactor front-end websocket handling #173

Open
karlromets opened this issue Jan 23, 2025 · 1 comment
Open

Refactor front-end websocket handling #173

karlromets opened this issue Jan 23, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@karlromets
Copy link
Collaborator

Front-end websocket handling is very messy and definitely needs refactoring.

I'm not sure what the best standard for doing this is but likely using context for the WebSocket connection and a useWebsocket hook.

Ideally switching pages should not reconnect the websocket, so while you are on host/new/buzzer page you will use the same connection when switching between them

@karlromets karlromets added the enhancement New feature or request label Jan 23, 2025
@theredwillow
Copy link
Contributor

theredwillow commented Jan 24, 2025

Preliminary search for pre-existing libraries...

react-use-websocket

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

No branches or pull requests

2 participants