websocket:Improve send method