Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Responder

Responder interface to dispatch responses to requests.

Hierarchy

  • Responder

Index

Methods

Methods

reject

  • reject(message: string): void
  • Reject a message

    Parameters

    • message: string

      the message indicating the failure

    Returns void

respond

  • respond(response: any, dataType?: DataType<any, any, any> | TopicType | object): void
  • Dispatch a response to a request.

    Parameters

    • response: any

      the response to send

    • Optional dataType: DataType<any, any, any> | TopicType | object

      the datatype of the response

    Returns void