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

Add an example #7

Open
1c3t3a opened this issue Jan 5, 2021 · 8 comments
Open

Add an example #7

1c3t3a opened this issue Jan 5, 2021 · 8 comments
Labels
documentation Improvements or additions to documentation feature New feature or request good first issue Good for newcomers

Comments

@1c3t3a
Copy link
Owner

1c3t3a commented Jan 5, 2021

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

@1c3t3a 1c3t3a added documentation Improvements or additions to documentation feature New feature or request labels Jan 5, 2021
@1c3t3a 1c3t3a added the good first issue Good for newcomers label Feb 27, 2021
@WildEgo
Copy link

WildEgo commented Mar 4, 2022

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

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

@1c3t3a
Copy link
Owner Author

1c3t3a commented Mar 6, 2022

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 good first issue label ;) Feel free to add the example and ask questions if they arise, I am happy to assist!

@BWStearns
Copy link

@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?

@1c3t3a
Copy link
Owner Author

1c3t3a commented Feb 23, 2023

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!

@BWStearns
Copy link

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?

@1c3t3a
Copy link
Owner Author

1c3t3a commented Feb 26, 2023

This looks fine! If you open a PR I can also review for readability of the code :)

@BWStearns
Copy link

Dope, thanks for the sanity check. I'll get a draft in tomorrow.

@tbmreza
Copy link

tbmreza commented May 2, 2024

Any updates here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants