method IRedisBackplaneClient.publish
IRedisBackplaneClient.publish(
channel: string,
message: string
): Promise<number>

Publishes a message to a channel.

Parameters

channel: string

The channel name

message: string

The message payload

Return Type

Promise<number>

The number of subscribers that received it

Usage

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