ewebsock icon indicating copy to clipboard operation
ewebsock copied to clipboard

Example in testing section does not work

Open smfx opened this issue 1 year ago • 1 comments

Hi!

  1. I start echo server with: cargo r -p echo_server
  2. Then I start the native example: cargo run -p example_app
  3. I see the connection both on client: image

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
  1. 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.

smfx avatar Jul 16 '24 10:07 smfx

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.

jovisnj avatar Aug 01 '24 08:08 jovisnj

This broke with the recent update to tungstenite 0.23:

  • https://github.com/rerun-io/ewebsock/pull/39

emilk avatar Oct 10 '24 12:10 emilk

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

Its-Just-Nans avatar Oct 10 '24 14:10 Its-Just-Nans