sockjs-client
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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 @@ == |
@@ -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); | ||
}; | ||
} |
@@ -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": { |
130017
3108
Updateddebug@^2.2.0
Updatedeventsource@~0.1.6
Updatedurl-parse@^1.1.1