Type Parameters

Hierarchy

  • Requests

Methods

  • Answer method. Register it once — a second live handler makes the caller settle on whichever reply lands first.

    The reply is addressed to the caller automatically. Throw RequestError to send a message the caller can read; any other throw becomes internal_error.

    Returns

    an unsubscribe function

    Type Parameters

    • K extends string

    Parameters

    Returns (() => void)

      • (): void
      • Answer method. Register it once — a second live handler makes the caller settle on whichever reply lands first.

        The reply is addressed to the caller automatically. Throw RequestError to send a message the caller can read; any other throw becomes internal_error.

        Returns

        an unsubscribe function

        Returns void