control motor via websocket