Stone.js API
    Preparing search index...

    In-process broadcaster.

    The zero-config default: it fans a broadcast out to local listeners subscribed to the channel (or to the * wildcard) and to any held connection that is a member of the channel. Single process; use the Redis broadcaster to fan out across instances.

    Implements

    Index
    name: string

    A human-readable name (e.g. 'memory', 'redis').

    store: ConnectionStore = ...

    The connection store.

    • Type Parameters

      • T = unknown

      Parameters

      • channel: string
      • event: string
      • Optionalpayload: T

      Returns Promise<void>

    • Parameters

      • channel: string

      Returns { emit: <T = unknown>(event: string, payload?: T) => Promise<void> }