mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Fixed handshake transports / client options transports intersection.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user