# 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); | |
} | |
``` | |