snapview / tokio-tungstenite

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

Additional Documentation of `IntoClientRequest` on `connect_async` #342

Closed Brendan-Blanchard closed 3 months ago

Brendan-Blanchard commented 3 months ago

I came across https://github.com/snapview/tokio-tungstenite/issues/92 when I needed this behavior for a use case of mine and wanted to save future searchers the trouble with an explicit example in the docs.

Let me know if there's anything I can change. My IDE didn't seem pleased with the formatting, even when adding the hidden async fn example() { ... } around it.