lib/SocketFactory.js
function createOptionsForServerSpec(serverSpec) {
    var options = {
        forceNew: true,            // Make a new connection each time
        reconnection: false        // Don't try and reconnect automatically
    };

    // If the server spec contains a socketResource setting we use
    // that otherwise leave the default ('/socket.io/')
    if(serverSpec.socket.socketResource) {
        options.resource = serverSpec.socket.socketResource;
    }
    return options;
}
function createOptionsForServerSpec(serverSpec) {
    var options = {
        forceNew: true,            // Make a new connection each time
        reconnection: false        // Don't try and reconnect automatically
    };

    // If the server spec contains a socketResource setting we use
    // that otherwise leave the default ('/socket.io/')
    if(serverSpec.socket.socketResource) {
        options.resource = serverSpec.socket.socketResource;
    }
    return options;
}
function createOptionsForServerSpec ( serverSpec ) { var options = { forceNew : true , // Make a new connection each time reconnection : false // Don't try and reconnect automatically } ; // If the server spec contains a socketResource setting we use // that otherwise leave the default ('/socket.io/') if ( serverSpec . socket . socketResource ) { options . resource = serverSpec . socket . socketResource ; } return options ; }
Create the socket.io options for the specified server
Create the socket . io options for the specified server