websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust

Home Page:http://websockets-rs.github.io/rust-websocket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make function for reconnect

TheRadioGuy opened this issue · comments

What shall it do? I suppose reconnecting is just creating another WebSocket and dropping the old one.

I cant change websocket in struct which already in use.

RefCell/Mutex?

You can make your own wrapper, like a WebSocket, but with reconnect. Maybe such wrapper can be upstreamed into websocket crate itself.

Thanks.