метод sendString
- @JSName('send')
- String data
Передаёт данные на сервер через это соединение.
Этот метод принимает данные типа Blob, ByteBuffer, String или TypedData. Именованные варианты sendBlob, sendByteBuffer, sendString или sendTypedData, напротив, принимают данные только указанного типа.
Реализация
@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 BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-html/WebSocket/sendString.html