realtime

Since Kuzzle v1.0.0

Events triggered when a request is sent to the realtime controller.


realtime:after<Action>

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

All actions in the realtime 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 subscribe request, a realtime:afterSubscribe event is triggered.


realtime:before<Action>

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

All actions in the realtime 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 publish request, a realtime:beforePublish event is triggered.


realtime:error<Action>

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

All actions in the realtime 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 join request, a realtime:errorJoin event is triggered.