Class: Event

Constructor

Construct Event instance with topic, data and additional options.

class Event(topic, data[, options])

topic should be a string representing the event.

data should be an object with the event payload.

Function: getData

Return event data.

getData()

Function: addSource

Add source to event data.

addSource(source)