Websocket implementation - v1