Has anyone reading this used rocket_ws (the websocket library)? The docs seem… v...
mcc @mcc@mastodon.social
Has anyone reading this used rocket_ws (the websocket library)?
The docs seem… vague, insofar as I get how it works but don't understand how it "could" work. You send a "message" over the wire. It appears the message can come out as either a string or binary. How does the receiving end know if it's text or binary, and how does it know the size of the message? Is this handled by the Websocket protocol at some level I'm unaware of?