method IRedisBackplaneClient.on
IRedisBackplaneClient.on(
event: string,
listener: (
channel: string,
message: string
) => void
): void

Registers an event listener. The transport listens for 'message'.

Parameters

event: string

The event name

listener: (
channel: string,
message: string
) => void

Invoked with the channel and the raw message

Return Type

void

Usage

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