Hello, Mastodon. Once again I am here to ask very basic questions along the line...
mcc @mcc@mastodon.social
Hello, Mastodon. Once again I am here to ask very basic questions along the lines of "why is my hello-world-level Rust networking code not working"?
Here is a simple loop in a Rocket server. It waits for input on a rocket_rs websocket, then when it gets it, feed().awaits the input to all other websockets in a list.
It does nothing.
If I change feed() to send(), the code works.
This seems wrong to me.
Context:
https://docs.rs/futures/latest/futures/sink/trait.SinkExt.html#method.feed
https://docs.rs/futures/latest/futures/sink/trait.SinkExt.html#method.send
(1/2)