mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
4410989fa2
revert ?
814 B
814 B
Home > iceshrimp-js > Stream > useChannel
Stream.useChannel() method
Signature:
useChannel<C extends keyof Channels>(
channel: C,
params?: Channels[C]["params"],
name?: string,
): Connection<Channels[C]>;
Parameters
Parameter | Type | Description |
---|---|---|
channel | C | |
params | Channels[C]["params"] | (Optional) |
name | string | (Optional) |
Returns:
Connection<Channels[C]>