2023-06-24 06:13:03 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-07-21 19:33:01 +02:00
|
|
|
[Home](./index.md) > [iceshrimp-js](./iceshrimp-js.md) > [ChannelConnection](./iceshrimp-js.channelconnection.md) > [send](./iceshrimp-js.channelconnection.send.md)
|
2023-06-24 06:13:03 +02:00
|
|
|
|
|
|
|
## 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
|
|
|
|
|