lib/Session.js
function() {
        var cb = function(err, meta) {
            if (err) {
                var error =
                        new Error('BUG: __external_ca_touch__ ' +
                                  'should not return app error');
                error['err'] = err;
                that.close(error);
            } else {
                addMethods(meta);
                addBackchannel();
                timeout = startTimeout();
                if (listeners.open) {
                    listeners.open();
                }
            }
        };
        if (firstTime) {
            firstTime = false;
            queues.rpc.remoteInvoke(webSocket, '__external_ca_touch__', [],
                                    [cb]);
        } else {
            retry();
        }
    }
function() {
        var cb = function(err, meta) {
            if (err) {
                var error =
                        new Error('BUG: __external_ca_touch__ ' +
                                  'should not return app error');
                error['err'] = err;
                that.close(error);
            } else {
                addMethods(meta);
                addBackchannel();
                timeout = startTimeout();
                if (listeners.open) {
                    listeners.open();
                }
            }
        };
        if (firstTime) {
            firstTime = false;
            queues.rpc.remoteInvoke(webSocket, '__external_ca_touch__', [],
                                    [cb]);
        } else {
            retry();
        }
    }
function ( ) { var cb = function ( err , meta ) { if ( err ) { var error = new Error ( 'BUG: __external_ca_touch__ ' + 'should not return app error' ) ; error [ 'err' ] = err ; that . close ( error ) ; } else { addMethods ( meta ) ; addBackchannel ( ) ; timeout = startTimeout ( ) ; if ( listeners . open ) { listeners . open ( ) ; } } } ; if ( firstTime ) { firstTime = false ; queues . rpc . remoteInvoke ( webSocket , '__external_ca_touch__' , [ ] , [ cb ] ) ; } else { retry ( ) ; } }
Internal WebSocket event handlers that delegate to external ones.
Internal WebSocket event handlers that delegate to external ones .