Moved websocket handler