Paramedic.prototype.initialize = function()

in paramedic-plugin/paramedic.js [29:44]


Paramedic.prototype.initialize = function() {
    var me = this;
    var connectionUri = me.loadParamedicServerUrl();
    this.socket = io(connectionUri);

    this.socket.on('connect', function () {
        console.log('Paramedic has been successfully connected to the server');
        if (typeof device != 'undefined') me.socket.emit('deviceInfo', device);
    });

    this.overrideConsole();
    this.injectJasmineReporter();

    // indicate our presence
    window.PARAMEDIC = true;
};