Socket
Socket
Sign inDemoInstall

faye-websocket

Package Overview
Dependencies
0
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.1 to 0.4.2

6

CHANGELOG.txt

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

=== 0.4.2 / 2012-04-06
* Add WebSocket error code 1011.
* Handle URLs with no path correctly by sending 'GET /'
=== 0.4.1 / 2012-02-26

@@ -2,0 +8,0 @@

19

lib/faye/websocket/hybi_parser.js

@@ -49,10 +49,11 @@ var crypto = require('crypto'),

ERRORS: {
normal_closure: 1000,
going_away: 1001,
protocol_error: 1002,
unacceptable: 1003,
encoding_error: 1007,
policy_violation: 1008,
too_large: 1009,
extension_error: 1010
normal_closure: 1000,
going_away: 1001,
protocol_error: 1002,
unacceptable: 1003,
encoding_error: 1007,
policy_violation: 1008,
too_large: 1009,
extension_error: 1010,
unexpected_condition: 1011
},

@@ -63,3 +64,3 @@

ERROR_CODES: [1000,1001,1002,1003,1007,1008,1009,1010],
ERROR_CODES: [1000,1001,1002,1003,1007,1008,1009,1010,1011],

@@ -66,0 +67,0 @@ UTF8_MATCH: /^([\x00-\x7F]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})*$/,

@@ -49,3 +49,3 @@ var crypto = require('crypto');

var headers = [
'GET ' + u.pathname + (u.search || '') + ' HTTP/1.1',
'GET ' + (u.pathname || '/') + (u.search || '') + ' HTTP/1.1',
'Host: ' + u.hostname + (u.port ? ':' + u.port : ''),

@@ -52,0 +52,0 @@ 'Upgrade: websocket',

@@ -7,3 +7,3 @@ { "name" : "faye-websocket"

, "version" : "0.4.1"
, "version" : "0.4.2"
, "engines" : {"node": ">=0.4.0"}

@@ -10,0 +10,0 @@ , "main" : "./lib/faye/websocket"

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