Skip to content

4. Events and Data Model

GianniCarlo edited this page May 17, 2016 · 1 revision

Listening to events and messages

The monkey events are:

  • onMessage - Triggered when a message arrives
  • onNotification - Triggered when a notification arrives
  • onAcknowledge - Triggered when an acknowledge of a message arrives
  • onChannelMessages - Triggered when a message from a subscribed channel arrives
  • onSubscribe - Triggered when you successfully subscribed to a channel
  • onSession - Triggered when the first part of the secure handshake has finished
  • onConnect - Triggered when there's a connection established to the socket server
  • onDisconnect - Triggered when there's a disconnection to the socket server

Clone this wiki locally