lib/fanoutpub.js
function(realm, key, ssl) {

    // Initialize with a specified realm, key, and a boolean indicating wther
    // SSL should be enabled or disabled.
    var scheme = 'https';
    if (typeof ssl !== 'undefined' && !ssl) {
        scheme = 'http';
    }
    var uri = scheme + '://api.fanout.io/realm/' + realm;
    var pubControl = new pubcontrol.PubControlClient(uri);
    pubControl.setAuthJwt({'iss': realm}, new Buffer(key, 'base64'));
    this.pubControl = pubControl;
}
function(realm, key, ssl) {

    // Initialize with a specified realm, key, and a boolean indicating wther
    // SSL should be enabled or disabled.
    var scheme = 'https';
    if (typeof ssl !== 'undefined' && !ssl) {
        scheme = 'http';
    }
    var uri = scheme + '://api.fanout.io/realm/' + realm;
    var pubControl = new pubcontrol.PubControlClient(uri);
    pubControl.setAuthJwt({'iss': realm}, new Buffer(key, 'base64'));
    this.pubControl = pubControl;
}
function ( realm , key , ssl ) { // Initialize with a specified realm, key, and a boolean indicating wther // SSL should be enabled or disabled. var scheme = 'https' ; if ( typeof ssl !== 'undefined' && ! ssl ) { scheme = 'http' ; } var uri = scheme + '://api.fanout.io/realm/' + realm ; var pubControl = new pubcontrol . PubControlClient ( uri ) ; pubControl . setAuthJwt ( { 'iss' : realm } , new Buffer ( key , 'base64' ) ) ; this . pubControl = pubControl ; }
The Fanout class is used for publishing messages to Fanout.io and is configured with a Fanout.io realm and associated key. SSL can either be enabled or disabled.
The Fanout class is used for publishing messages to Fanout . io and is configured with a Fanout . io realm and associated key . SSL can either be enabled or disabled .