-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
create chat example #77
Conversation
as discussed in: #75 |
and a totally of topic question, but what editor do you use and does it manage the syntax highlighting ok? I'm using neovim and it completely breaks on the inline html (but I don't care too much about that), the issue is though that it doesn't recover and highlight the rest of the file with proper ocaml formatting 😢 |
Anything else you want me to change? |
Thank you! I'll make some minor edits and link the example from the example TOC. |
I use VS Code, and it eventually recovers from mis-highlighting HTML in an Here's an example of an |
Thanks. I'll probably also separate |
Ok, the example is now linked, and loaded into the playground! |
This adds a very basic chat example. It's functional, but I'm definetely open for suggestions, changes,...
One question I have, a problem I saw, was that I sent messages to a closed websocket, which resulted in errors. I was wondering what would be the best way of handling this.
At the moment I do my best to remove the connections that will be closed, but I think race conditions are possible where you try to send something to a socket that's not there anymore.