websocket.rs changes in constructor