Restart disconnected thread

I'm running my websocket server ws-rs as a thread along with rocket in some cases my ws-rs server is disconnected, how can I fire it again!

I launch my ws-rs as:

    let mut ws = ws::WebSocket::new(
        |out| Client { out }).unwrap();

    thread::spawn(|| { ws.listen("").unwrap(); });

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.