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
example that uses websockets #3
Comments
Hi Thomas, great let me see if I can set you up :-) ReWeb Manual section on WebSockets: https://yawaramin.github.io/re-web/re-web/Manual/Ch04_Responses/index.html#websocket-responses Example of serving a WS from your router: Line 247 in a599b33
Implementation of the above WS with more comments: Line 148 in a599b33
Let me know if anything is unclear–I'd love to polish the docs. |
Thanks for the response. The documentation and the example in Main.re is nice! Reading through the documentation and the examples above, I tried to create the simplest possible websocket:
this compiles fine, but when I surf to 8080 I get:
Well reading into this, that seems obvious, as I didn't request a To be clear, I did get it to work after that, so my original issue is solved, but not sure if the issue above this warrants a different issue. |
Ah, interesting! I'm going to treat that as a new issue: #4 |
It would be nice if there was an example that shows the usage of websockets. I'm willing to give this a try if you give me some pointers in how to do it.
The text was updated successfully, but these errors were encountered: