trashposs/packages/trashposs-js/markdown/trashposs-js.channelconnection.send.md

27 lines
602 B
Markdown
Raw Permalink Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2024-04-06 22:57:52 +02:00
[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