jormungandr-bite/packages/iceshrimp-sdk/markdown/iceshrimp-sdk.stream.usechannel.md
Laura Hausmann 91dddc439f
[sdk] Rename iceshrimp-js package to iceshrimp-sdk
This resolves possible confusion between iceshrimp-js (this project) and iceshrimp-sdk (the package)
2024-07-23 23:15:19 +02:00

807 B

Home > iceshrimp-sdk > 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]>