Add code to reopen a closed websocket.
Add code to reopen a closed websocket.