mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 13:39:06 +01:00
800 B
800 B
Home > calckey-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]>