dazeus.js
function (event) {
    this.debug("Requesting subscription for " + event);
    sendReceive.call(this, {'do': 'subscribe', params: [event]}, function (result) {
        if (result.success) {
            this.debug("Succesfully subscribed to %s", event);
        } else {
            this.debug("Subscription request for %s failed", event);
        }
    });
    this.subscribedEvents.push(event);
}
function (event) {
    this.debug("Requesting subscription for " + event);
    sendReceive.call(this, {'do': 'subscribe', params: [event]}, function (result) {
        if (result.success) {
            this.debug("Succesfully subscribed to %s", event);
        } else {
            this.debug("Subscription request for %s failed", event);
        }
    });
    this.subscribedEvents.push(event);
}
function ( event ) { this . debug ( "Requesting subscription for " + event ) ; sendReceive . call ( this , { 'do' : 'subscribe' , params : [ event ] } , function ( result ) { if ( result . success ) { this . debug ( "Succesfully subscribed to %s" , event ) ; } else { this . debug ( "Subscription request for %s failed" , event ) ; } } ) ; this . subscribedEvents . push ( event ) ; }
Request DaZeus to be notified of a certain type of event
@param  {String} event Type of event to subscribe to
Request DaZeus to be notified of a certain type of event