send method

  1. @DomName('WebSocket.send')
  2. @DocsEditable()
void send (dynamic data)

Transmit data to the server over this connection.

This method accepts data of type Blob, ByteBuffer, String, or TypedData. Named variants sendBlob, sendByteBuffer, sendString, or sendTypedData, in contrast, only accept data of the specified type.

Implementation

@DomName('WebSocket.send')
@DocsEditable()
void send(data) native;