socketcluster-client
Advanced tools
Comparing version 0.9.7 to 0.9.8
@@ -208,4 +208,4 @@ /** | ||
self._emitBuffer = []; | ||
self.ssid = self._setSessionCookie(self.id); | ||
Emitter.prototype.emit.call(self, 'connect', e.data); | ||
self.ssid = self._setSessionCookie(e.data.appName, self.id); | ||
Emitter.prototype.emit.call(self, 'connect', e.data.soid); | ||
} else if (e.event == 'disconnect') { | ||
@@ -262,6 +262,6 @@ self.connected = false; | ||
ClusterSocket.prototype._setSessionCookie = function (socketId) { | ||
ClusterSocket.prototype._setSessionCookie = function (appName, socketId) { | ||
var sessionSegments = socketId.match(this._sessionDestRegex); | ||
var soidDest = sessionSegments ? sessionSegments[0] : null; | ||
var sessionCookieName = 'n/' + sessionSegments[1] + '/' + sessionSegments[3] + '/ssid'; | ||
var sessionCookieName = 'n/' + appName + '/ssid'; | ||
@@ -268,0 +268,0 @@ var ssid = this._getCookie(sessionCookieName); |
{ | ||
"name": "socketcluster-client", | ||
"description": "Client side of SocketCluster", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"homepage": "https://github.com/topcloud/socketcluster-client", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
Sorry, the diff of this file is too big to display
167460