rudeshark.net/packages/firefish-js/markdown/firefish-js.stream.usechannel.md
ThatOneCalculator ff08ec77ee
we be renamin
2023-07-15 14:21:17 -07:00

807 B

Home > firefish-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]>