send method

void send({
  1. required String destination,
  2. Map<String, String>? headers,
  3. String? body,
  4. Uint8List? binaryBody,
})

Implementation

void send({
  required String destination,
  Map<String, String>? headers,
  String? body,
  Uint8List? binaryBody,
}) {
  final handler = _handler;
  if (handler == null) {
    throw StompBadStateException(
      'The StompHandler was null. '
      'Did you forget calling activate() on the client?',
    );
  }

  handler.send(
    destination: destination,
    headers: headers,
    body: body,
    binaryBody: binaryBody,
  );
}