27 lines
560 B
Markdown
27 lines
560 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [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
|
||
|
|