Robot WebSocket Functions