websocket class