mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
91dddc439f
This resolves possible confusion between iceshrimp-js (this project) and iceshrimp-sdk (the package)
23 lines
595 B
Markdown
23 lines
595 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [iceshrimp-sdk](./iceshrimp-sdk.md) > [ChannelConnection](./iceshrimp-sdk.channelconnection.md) > [send](./iceshrimp-sdk.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
|
|
|