W3cubDocs

/Dart 2

add method

void add (dynamic data)

Sends data on the WebSocket connection. The data in data must be either a String, or a List<int> holding bytes.

Implementation

void add(/*String|List<int>*/ data);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/WebSocket/add.html