rerun-io / ewebsock

A Rust Websocket client that compiles to both native and web
Apache License 2.0
219 stars 28 forks source link

Add `protocols` option #31

Open rniii opened 7 months ago

rniii commented 7 months ago

Adds an option to set Sec-WebSocket-Protocol, which requests a sub-protocol to a server

On web, since its not possible to set any headers when opening a request, this may also be (hackishly) used for authorization