Core
Framework v2.x
2

Connection Events #

connection:new #

Arguments Type Description
connection
object
Connection information

Triggered whenever a new connection is made to Kuzzle.

Pipes cannot listen to that event, only hooks can.


connection:remove #

Arguments Type Description
connection
object
Connection information

Triggered whenever a connection is removed from Kuzzle.

Pipes cannot listen to that event, only hooks can.


connection object #

The provided connection object has the following properties:

Properties Type Description
id
string
Connection unique ID
protocol
string
Protocol name (eg: websocket, http, etc.)
headers
object
Protocol specific headers
ips
array
Array of ips addresses