snapview / tokio-tungstenite

Future-based Tungstenite for Tokio. Lightweight stream-based WebSocket implementation
MIT License
1.88k stars 236 forks source link

Are examples not applicable to the latest version? #352

Closed istomyang closed 1 month ago

istomyang commented 1 month ago
截屏2024-10-02 20 48 11
daniel-abramov commented 1 month ago

Yes, the examples should be correct.

Make sure that you have the necessary things imported and that they are used properly.

istomyang commented 1 month ago

Yes, the examples should be correct.

Make sure that you have the necessary things imported and that they are used properly.

Thanks for your reply.

I noticed that it's necessary to explicitly add the `futures-util' dependency to your Cargo.toml.

It's a good idea to include this detail in the readme. It will help more newbies.