snapview / tokio-tungstenite

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

[refactor] connect.rs: extract duplicated code into a function #270

Closed vvv closed 1 year ago

vvv commented 1 year ago

connect_async_with_config and connect_async_tls_with_config have identical implementations. connector parameter is the only difference.

daniel-abramov commented 1 year ago

Thanks!