Class DuplexHandler<Container, Input, Output>Abstract

Type Parameters

Hierarchy

  • Handler<Container, Input, Output>
    • DuplexHandler

Constructors

Properties

Methods

Constructors

Properties

_inputType: Input
_outputType: Output
container: Container
timeout?: number

This is the timeout used for the handler. If it is not set then the default timeout time for the RPCServer is used.

Methods

  • Note that if the output has an error, the handler will not see this as an error. If you need to handle any clean up it should be handled in a finally block and check the abort signal for potential errors.

    Parameters

    • input: AsyncIterableIterator<Input>
    • cancel: ((reason?) => void)
        • (reason?): void
        • Parameters

          • Optional reason: any

          Returns void

    • meta: undefined | Record<string, JSONValue>
    • ctx: ContextTimed

    Returns AsyncIterableIterator<Output>

Generated using TypeDoc