Types for defining extensions.

Hierarchy

  • StreamingExtension

Properties

Properties

incoming?: ((message, callback) => void)

Type declaration

    • (message, callback): void
    • Extension for the incoming message.

      Parameters

      • message: JsonMap

        The message.

      • callback: AnyFunction<unknown>

        The callback to invoke after the message is processed.

      Returns void

outgoing?: ((message, callback) => void)

Type declaration

    • (message, callback): void
    • Extension for outgoing message.

      Parameters

      • message: JsonMap

        The message.

      • callback: AnyFunction<unknown>

        The callback to invoke after the message is processed.

      Returns void