angular-websocket
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -43,2 +43,3 @@ ;(function(module, undefined) { | ||
var wrappedWebSocket = { | ||
states: ['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'], | ||
on: function(event) { | ||
@@ -60,3 +61,8 @@ return addListener(event); | ||
}, | ||
readyState: function() { | ||
return ws.readyState | ||
}, | ||
currentState: function() { | ||
return this.states[ws.readyState]; | ||
}, | ||
send: function(message) { | ||
@@ -63,0 +69,0 @@ message = Array.prototype.slice.call(arguments); |
{ | ||
"name": "angular-websocket", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"homepage": "https://github.com/gdi2290/angular-websocket", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "angular-websocket", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "angular-websocket.js", | ||
@@ -5,0 +5,0 @@ "description": "WebSocket service for Angular.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11351
174
6586