method IRedisBackplaneClient.subscribe
IRedisBackplaneClient.subscribe(channel: string): Promise<unknown>

Subscribes to a channel.

Parameters

channel: string

The channel name

Return Type

Promise<unknown>

The number of channels this connection is now subscribed to

Usage

import { type IRedisBackplaneClient } from "realtime-backplane-plugin/src/index.ts";