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

Use websockets to push item/dungeon/location states to browsers #17

Closed
jhelwig opened this issue Jun 20, 2018 · 2 comments
Closed

Use websockets to push item/dungeon/location states to browsers #17

jhelwig opened this issue Jun 20, 2018 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jhelwig
Copy link
Member

jhelwig commented Jun 20, 2018

Instead of polling from the browser, we should be opening a websocket from the browser, and pushing state back to the browser(s) over it. Ideally, this would re-use the same port that Rocket is already using (but might not be doable until rwf2/Rocket#90 happens).

@jhelwig jhelwig added enhancement New feature or request help wanted Extra attention is needed future Something that would be nice to have, but isn't currently planned to be worked on labels Jun 20, 2018
@jhelwig
Copy link
Member Author

jhelwig commented Jun 20, 2018

Need to figure out how to hook together Rocket (the current web framework), and rust-websocket. https://github.com/cyderize/rust-websocket/issues/46 looks like a useful place to start looking.

@jhelwig jhelwig removed the future Something that would be nice to have, but isn't currently planned to be worked on label Jul 4, 2018
@jhelwig
Copy link
Member Author

jhelwig commented Jul 4, 2018

Done in bc93b56

@jhelwig jhelwig closed this as completed Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant