Permalink
Browse files

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

  • Loading branch information...
1 parent 7de3daf commit f3c463af82a51c3f9d46eaba7369a312510e8e96 @dcolens dcolens committed Nov 23, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/client/now.js
View
@@ -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;

0 comments on commit f3c463a

Please sign in to comment.