mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-13 22:28:12 +09:00
27 lines
594 B
Markdown
27 lines
594 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [send](./calckey-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
|
|
|