Simple corrections in send method for WebSocket