rerun-io / ewebsock

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

The results or `EventHandler` is ignored #32

Closed emilk closed 6 months ago

emilk commented 6 months ago

EventHandler is defined to return a std::ops::ControlFlow, and the intent was that ControlFlow::Break would close the connectoon, but none of the backends do.


Future work: We could also extend EventHandler to optionally return an exit code and disconnect reason in the Break case, that will let the server know why the connection was closed.