jormungandr-bite/packages/iceshrimp-js/markdown/iceshrimp-js.stream.usechannel.md
limepotato 4410989fa2
revert ba0e5eec93
revert ?
2024-06-17 18:18:03 +02:00

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