send method

bool send(
  1. dynamic data
)

Implementation

bool send(dynamic data) {
  logger.debug('send()');

  if (!isConnected()) {
    logger.error(
        'unable to send message, transport is not connected. Current state is $status',
        null,
        StackTraceNJ());
    return false;
  }

  String message = data.toString();
  //logger.debug('sending message:\n\n$message\n');
  return socket!.send(message);
}