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.
@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 sendString(String data) native;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/WebSocket/sendString.html