write method

void write(
  1. dynamic data, [
  2. dynamic options
])

Writes data as response to poll request.

Implementation

void write(data, [options]) {
  doWrite(data, options, () {
    var fn = _reqCleanups.remove(connect);
    if (fn != null) fn();
  });
}