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("127.0.0.1:8080").unwrap(); });