valkyrie-docs/docs/api/valkyrie-js.channelconnection.send.md

27 lines
560 B
Markdown
Raw Normal View History

2023-08-01 05:58:34 -07:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index) &gt; [valkyrie-js](./valkyrie-js) &gt; [ChannelConnection](./valkyrie-js.channelconnection) &gt; [send](./valkyrie-js.channelconnection.send)
## 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