Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

socketcluster-client

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socketcluster-client - npm Package Compare versions

Comparing version 0.9.7 to 0.9.8

8

lib/clustersocket.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc