added websocket class