mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 13:09:07 +01:00
27 lines
602 B
Markdown
27 lines
602 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [iceshrimp-js](./iceshrimp-js.md) > [ChannelConnection](./iceshrimp-js.channelconnection.md) > [send](./iceshrimp-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
|
|
|