Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FilterModule

Defines a module whose {@link filter()} method is used to manipulate or filter out messages as they arrive.

since

2.0.0

Hierarchy

Implemented by

Index

Methods

filter

  • Gets passed a message, optionally executes actions upon it, and returns a message. The filter chain can be broken by returning an empty fulfilled promise.

    abstract
    since

    2.0.0

    Parameters

    • msg: Message

      The received message object.

    Returns Promise<Message | void>

    The resulting message or an empty promise.

getRuntime

onListen

  • onListen(): Promise<any>

onShutdown

  • onShutdown(): Promise<any>

Generated using TypeDoc