type alias RoomPublisher
Since 0.2.0

Forwards a local broadcast to peers on other replicas.

Supplied by a RoomRegistry that was given a backplane. A room built without one broadcasts purely in-process, which is the behavior every application had before the backplane existed.

Definition

(
name: string,
data: string | Uint8Array,
exceptId?: string
) => void

Usage

import { type RoomPublisher } from "websocket-plugin/src/index.ts";