trashposs/packages/trashposs-js/markdown/trashposs-js.channelconnection.send.md
2024-04-06 22:57:52 +02:00

27 lines
602 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [trashposs-js](./trashposs-js.md) &gt; [ChannelConnection](./trashposs-js.channelconnection.md) &gt; [send](./trashposs-js.channelconnection.send.md)
## ChannelConnection.send() method
**Signature:**
```typescript
send<T extends keyof Channel["receives"]>(
type: T,
body: Channel["receives"][T],
): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | T | |
| body | Channel\["receives"\]\[T\] | |
**Returns:**
void