send method

  1. @override
Future<void> send(
  1. Object data
)
override

data: the content. Either a string (json) or Uint8List (binary)

Implementation

@override
Future<void> send(Object data) async {
  if (!_running) {
    return Future.error(
        new GeneralError("Cannot send until the transport is connected"));
  }
  await sendMessage(_logger, "LongPolling", _httpClient, _url,
      _accessTokenFactory, data, _logMessageContent);
}