-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add an example #7
Comments
Hey is there any updates on this? I'm quite interested in the library but I'd like to have a demo for the chat example provided |
Hi @WildEgo, nice that you're interested in the library! Until now I didn't find the time for adding that example (that's why I also added the |
@1c3t3a I just used your crate recently and have some spare cycles I could use to make a Rust client example. Was the thought to use the example chat as a server and implement a cli chat client? |
Happy to hear that! :) The example can be similar to the one in the socket.io tree (https://github.com/socketio/socket.io/tree/master/examples/chat). A CLI (or just some executable binary) would be super nice to show the capabilities! |
ok awesome. I'll get started on it soon. Just to make sure I don't poison the well by recommending bad practices, is the way I blocked to wait for the WS responses here a "legit" way of doing it or is there a more canonical way? |
This looks fine! If you open a PR I can also review for readability of the code :) |
Dope, thanks for the sanity check. I'll get a draft in tomorrow. |
Any updates here? |
The typical socket.io example is a chat server. This tackles the concept of namespaces as well as a persistent communication with multiple clients. If you're looking for the server-side code, have a look here: https://github.com/socketio/socket.io/tree/master/examples/chat
The text was updated successfully, but these errors were encountered: