Setu-TS
    Preparing search index...

    Type Alias RoomPublisher

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

    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.

    Type Declaration

      • (name: string, data: string | Uint8Array, exceptId?: string): void
      • Parameters

        • name: string

          The room the broadcast was addressed to

        • data: string | Uint8Array

          The payload, exactly as handed to broadcast

        • OptionalexceptId: string

        Returns void

    0.2.0