websocket-driver
Advanced tools
+4
-0
@@ -0,1 +1,5 @@ | ||
| ### 0.6.2 / 2015-07-18 | ||
| * When the peer sends a close frame with no error code, emit 1000 | ||
| ### 0.6.1 / 2015-07-13 | ||
@@ -2,0 +6,0 @@ |
@@ -97,2 +97,3 @@ 'use strict'; | ||
| ERROR_CODES: [1000, 1001, 1002, 1003, 1007, 1008, 1009, 1010, 1011], | ||
| DEFAULT_ERROR_CODE: 1000, | ||
| MIN_RESERVED_ERROR: 3000, | ||
@@ -407,3 +408,3 @@ MAX_RESERVED_ERROR: 4999, | ||
| if (opcode === this.OPCODES.close) { | ||
| code = (payload.length >= 2) ? 256 * payload[0] + payload[1] : null; | ||
| code = (payload.length >= 2) ? payload.readUInt16BE(0) : null; | ||
| reason = (payload.length > 2) ? this._encode(payload.slice(2)) : null; | ||
@@ -419,3 +420,3 @@ | ||
| this._shutdown(code, reason || ''); | ||
| this._shutdown(code || this.DEFAULT_ERROR_CODE, reason || ''); | ||
| } | ||
@@ -422,0 +423,0 @@ |
+1
-1
@@ -8,3 +8,3 @@ { "name" : "websocket-driver" | ||
| , "version" : "0.6.1" | ||
| , "version" : "0.6.2" | ||
| , "engines" : {"node": ">=0.6.0"} | ||
@@ -11,0 +11,0 @@ , "main" : "./lib/websocket/driver" |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
63392
0.22%1327
0.08%