sendWrapper method

void sendWrapper(
  1. WrappedMessage wrapper,
  2. {SocketInfo? destinationOverride}
)
inherited

Sends an already-wrapped WrappedMessage to the destination, or the given destinationOverride.

Use this function instead of sendMessage if you need to manually wrap a message yourself.

Implementation

void sendWrapper(WrappedMessage wrapper, {SocketInfo? destinationOverride}) =>
  sendData(wrapper.writeToBuffer(), destinationOverride: destinationOverride);