websocket commands simplified