Core
Write Plugins v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

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 #

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