blob: d7e3fc4b9b089b87d0ff07ef344f43f0777fddf7 [file] [log] [blame] [view]
# sendMessage method
void sendMessage
([OutgoingMessage](../../package-fidl_fidl/OutgoingMessage-class.md) response)
<p>Sends the given message over the bound channel.</p>
<p>If the channel is not bound, the handles inside the message are closed and
the message itself is discarded.</p>
## Implementation
```dart
void sendMessage(OutgoingMessage response) {
if (!_reader.isBound) {
response.closeHandles();
return;
}
_reader.channel!.writeEtc(response.data, response.handleDispositions);
}
```