server

Since Kuzzle v1.0.0

Events triggered on server special events or when a request is sent to the server controller.


server:after<Action>

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

All actions in the server controller trigger this event after a successful execution, with the <Action> part of the event name replaced with the name of the action, capitalized.

Example: after a successful info request, a server:afterInfo event is triggered.


server:before<Action>

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

All actions in the server controllers trigger this event before execution, with the <Action> part of the event name replaced with the name of the action, capitalized.

Example: before performing a now request, a server:beforeNow event is triggered.


server:error<Action>

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

All actions in the server controllers trigger this event after a failed execution, with the <Action> part of the event name replaced with the name of the action, capitalized.

Example: after a failed delete request, a server:errorAdminExists event is triggered.