send method

  1. @override
bool send(
  1. dynamic message
)
override

Implementation

@override
bool send(dynamic message) {
  logger.debug('send()');
  if (_closed) {
    throw 'transport closed';
  }
  try {
    _ws!.send(message);
    return true;
  } catch (error) {
    logger.error('send() | error sending message: ' + error.toString());
    throw error;
  }
}