Permalink
Browse files

Fixed handshake transports / client options transports intersection.

  • Loading branch information...
rauchg committed Mar 28, 2012
1 parent dce9685 commit 779095a25e6a4148d338da93bf3c40ebee4e3370
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/socket.js
View
@@ -203,10 +203,10 @@
self.sessionid = sid;
self.closeTimeout = close * 1000;
self.heartbeatTimeout = heartbeat * 1000;
- self.transports = io.util.intersect(
+ self.transports = transports ? io.util.intersect(
transports.split(',')
, self.options.transports
- );
+ ) : self.options.transports;
self.setHeartbeatTimeout();
@@ -249,7 +249,7 @@
});
}
- connect(self.options.transports);
+ connect(self.transports);
self.once('connect', function (){
clearTimeout(self.connectTimeoutTimer);

0 comments on commit 779095a

Please sign in to comment.