Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ConnectionMiddleware

var connectionMiddleware = {
name: 'connection middleware',
priority: 1000,
create: (connection) => {
 // do stuff
},
destroy:(connection) => {
 // do stuff
}
}

Hierarchy

  • ConnectionMiddleware

Index

Properties

Optional create

create: Function

Called for each new connection when it is created. Connection is passed to the event handeler

Optional destroy

destroy: Function

Called for each connection before it is destroyed. Connection is passed to the event handeler

name

name: string

Unique name for the middleware.

Optional priority

priority: number

Module load order. Defaults to api.config.general.defaultMiddlewarePriority.

Generated using TypeDoc