Example in testing section does not work
Hi!
- I start echo server with:
cargo r -p echo_server - Then I start the native example:
cargo run -p example_app - I see the connection both on client:
and on server:
Compiling echo_server v0.1.0 (/home/smfx/tmp/ewebsock/echo_server)
Finished dev [unoptimized + debuginfo] target(s) in 0.34s
Running `target/debug/echo_server`
Listening on: ws://127.0.0.1:9001
New client connected
- When I send any message nothing happens. I don't see anything in server logs nor in client app.
I checked on rust 1.79 and 1.76.
Hi.
I can confirm this as well. I also tried connecting the example_app to a websocket server other than the echo_server provided in the examples, and it behaves the same. The connection is established, but then messages don't arrive to the server side. If I try an alternative client implementation and connect it to the example echo_server, messages do get through. So I presume something is wrong with the example_app.
This broke with the recent update to tungstenite 0.23:
- https://github.com/rerun-io/ewebsock/pull/39
I currently see that the example is working
I guess the fix was https://github.com/rerun-io/ewebsock/pull/45
Conclusion: example_app is working now