mirror of
https://example.com
synced 2024-11-28 04:36:39 +09:00
26 lines
598 B
Markdown
26 lines
598 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [firefish-js](./firefish-js.md) > [ChannelConnection](./firefish-js.channelconnection.md) > [send](./firefish-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
|
|
|