websocket: sent the result to the server