Core
Framework v2.x
2

Connection Events #

connection:new #

ArgumentsTypeDescription
connection
object
Connection information

Triggered whenever a new connection is made to Kuzzle.

Pipes cannot listen to that event, only hooks can.


connection:remove #

ArgumentsTypeDescription
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:

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