trashposs/packages/trashposs-js/markdown/trashposs-js.stream.usechannel.md
2024-04-06 22:57:52 +02:00

814 B

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