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

Implementing Sink for WebSocketConnection? #7

Closed
xosxos opened this issue Dec 30, 2020 · 3 comments
Closed

Implementing Sink for WebSocketConnection? #7

xosxos opened this issue Dec 30, 2020 · 3 comments

Comments

@xosxos
Copy link

xosxos commented Dec 30, 2020

Hello! Great to see websocket support come into fruition for Tide! I was playing around with the implementation. The basic functionality is looking good! This lead me to wonder if there are any future plans on implementing the Sink trait for WebSocketConnection?

@jbr
Copy link
Member

jbr commented Dec 30, 2020

See #3 (comment)

@xosxos
Copy link
Author

xosxos commented Dec 30, 2020

Ah sorry did not see that one! I am somewhat new to Rust so I get the basic sending and receiving to work but cant figure out how to emit messages to multiple clients in the way you can outlined in this blog post about Warp https://blog.logrocket.com/how-to-build-a-websocket-server-with-rust/

As a noobie I don't understand implementing async iteration both ways at the same time without splitting the stream :( And as this isn't stackoverflow I am not expecting a solution here but thank you for your time !

@xosxos
Copy link
Author

xosxos commented Dec 30, 2020

Got it working now, just took a couple of hours more learning async rust !

@xosxos xosxos closed this as completed Dec 30, 2020
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