Having trouble to make mediasoup rust echo example work

I run the mediasoup rust echo example on Ubuntu with cargo run --example echo, and it did start without error, but websocket connection just times out without any log or response.

You can try testing websocket connection with websocat ws://127.0.0.1:3000/ws. (GitHub - vi/websocat: Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions)

I removed path from dependencies.mediasoup-sys in Cargo.toml that resulted this. After adding path back and build mediasoup-sys locally, the example works.

How do you run it (namely is is under WSL on on server somewhere)?

It should be running natively on Linux or macOS or else 127.0.0.1 will be different between environment you’re using to run the app and your browser.

And don’t remove path unless you know what you’re doing and why.

I was running it on Ubuntu. And I changed example dependency mediasoup-sys source from local path to crate.io 's (by deleting path key). The WebSocket server didn’t work with this dependency change. After revert this change back, it works well. : D

So in the end everything works fine?

Yes. And I switched to this branch: GitHub - nazar-pc/mediasoup at rust-next, the echo example works well.