Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding support to configure path of socket.io via the resource option

  • Loading branch information...
commit f3c463af82a51c3f9d46eaba7369a312510e8e96 1 parent 7de3daf
@dcolens dcolens authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/client/now.js
View
4 lib/client/now.js
@@ -6,6 +6,8 @@
return nowObjects[uri];
}
options = options || {};
+ options.socketio = options.socketio || {};
+ options.socketio.resource = options.socketio.resource || "socket.io";
var socket;
var closures = {};
@@ -535,7 +537,7 @@
};
var dependencies = [
- { key: 'io', path: '/socket.io/socket.io.js'}
+ { key: 'io', path: '/' + now.core.options.socketio.resource + '/socket.io.js'}
];
var dependenciesLoaded = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.