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

Any example to seperate out sender and receiver? #323

Open
rohitcelestial opened this issue Jun 10, 2020 · 1 comment
Open

Any example to seperate out sender and receiver? #323

rohitcelestial opened this issue Jun 10, 2020 · 1 comment

Comments

@rohitcelestial
Copy link

I am looking for examples for seperating out the senders and receivers such that I shall be able to write to socket from file and then receive message and save them seperately.

Thanks.

@d4h0
Copy link

d4h0 commented Jun 28, 2020

@rohitcelestial: Did you see this guide?

It seems you can send Sender to another thread and then send messages from that thread. Because ws.rs is callback-based, the callback you defined will still receive new messages.

It seems there is a bug when the WebSocket was closed and further messages are sent: #316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants