sendTypedData method Null safety

  1. @JSName('send')
void sendTypedData(
  1. TypedData data
)
@JSName('send')

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

@JSName('send')
/**
 * 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.
 */
void sendTypedData(TypedData data) native;