Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

EventHandler

EventHandler<T>: (data: T, message: Message<T>) => void

Type parameters

  • T = any

Type declaration

    • (data: T, message: Message<T>): void
    • An event handler methods

      Parameters

      Returns void

RequestHandler

RequestHandler<Q, R>: (requestData: Q, message: Message<Q>) => R

Type parameters

  • Q = any

  • R = any

Type declaration

    • (requestData: Q, message: Message<Q>): R
    • Request handler method. Differs from an eventhandler in that it accepts request data and can return response data

      Parameters

      Returns R

Generated using TypeDoc