Socket
Socket
Sign inDemoInstall

sockjs-client

Package Overview
Dependencies
14
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

5

Changelog.md

@@ -0,1 +1,6 @@

1.1.1
==
* Do not pass `protocols` or `options` arguments to browser WebSocket constructor - #309
1.1.0

@@ -2,0 +7,0 @@ ==

9

lib/transport/browser/websocket.js

@@ -1,1 +0,8 @@

module.exports = global.WebSocket || global.MozWebSocket;
'use strict';
var Driver = global.WebSocket || global.MozWebSocket;
if (Driver) {
module.exports = function WebSocketBrowserDriver(url) {
return new Driver(url);
};
}

2

lib/transport/websocket.js

@@ -32,3 +32,3 @@ 'use strict';

this.ws = new WebsocketDriver(this.url, undefined, options);
this.ws = new WebsocketDriver(this.url, [], options);
this.ws.onmessage = function(e) {

@@ -35,0 +35,0 @@ debug('message event', e.data);

@@ -1,1 +0,1 @@

module.exports = '1.1.0';
module.exports = '1.1.1';
{
"name": "sockjs-client",
"description": "SockJS-client is a browser JavaScript library that provides a WebSocket-like object. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.",
"version": "1.1.0",
"version": "1.1.1",
"author": "Bryce Kahle",

@@ -27,8 +27,8 @@ "browser": {

"dependencies": {
"debug": "^2.1.0",
"eventsource": "^0.1.3",
"debug": "^2.2.0",
"eventsource": "~0.1.6",
"faye-websocket": "~0.11.0",
"inherits": "^2.0.1",
"json3": "^3.3.2",
"url-parse": "^1.0.1"
"url-parse": "^1.1.1"
},

@@ -35,0 +35,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc