Interface GroupEmitter

Interface representing a group emitter that can emit events to a group and iterate over a group.

interface GroupEmitter {
    emitToGroup(group: string, method: string, ...params: any): void;
    iterateGroup(group: string, cb: (context: Context) => void): void;
}

Hierarchy (View Summary)

Implemented by

Methods

  • Emits an event to a specified group.

    Parameters

    • group: string

      The name of the group to emit the event to.

    • method: string

      The method name to be called on the group.

    • ...params: any

      Additional parameters to be passed to the method.

    Returns void

  • Iterates over a specified group and executes a callback function for each context.

    Parameters

    • group: string

      The name of the group to iterate over.

    • cb: (context: Context) => void

      The callback function to be executed for each context.

    Returns void