Permalink
Browse files

Added support for the resource option

  • Loading branch information...
1 parent ba61c95 commit 8b49543a1880ab0eedd8ef7b92883fda80654fe6 @josephg committed Mar 21, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/io-client.js
View
@@ -7,7 +7,9 @@ var sys = require('sys'),
io = {};
var Socket = io.Socket = function (host, options) {
- this.url = 'ws://' + host + ':' + options.port + '/socket.io/websocket';
+ var resource = options.resource || 'socket.io';
+
+ this.url = 'ws://' + host + ':' + options.port + '/' + resource + '/websocket';
this.connected = false;
this.sessionId = null;
this._heartbeats = 0;

0 comments on commit 8b49543

Please sign in to comment.