Socket
Socket
Sign inDemoInstall

faye-websocket

Package Overview
Dependencies
4
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.2 to 0.9.3

26

CHANGELOG.md

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

### 0.9.3 / 2015-02-19
* Make sure the TCP socket is not left open when closing the connection
### 0.9.2 / 2014-12-21

@@ -5,3 +9,2 @@

### 0.9.1 / 2014-12-18

@@ -11,3 +14,2 @@

### 0.9.0 / 2014-12-13

@@ -17,3 +19,2 @@

### 0.8.1 / 2014-11-12

@@ -23,3 +24,2 @@

### 0.8.0 / 2014-11-08

@@ -30,3 +30,2 @@

### 0.7.3 / 2014-10-04

@@ -36,3 +35,2 @@

### 0.7.2 / 2013-12-29

@@ -42,3 +40,2 @@

### 0.7.1 / 2013-12-03

@@ -49,3 +46,2 @@

### 0.7.0 / 2013-09-09

@@ -55,3 +51,2 @@

### 0.6.1 / 2013-07-05

@@ -62,3 +57,2 @@

### 0.6.0 / 2013-05-12

@@ -68,3 +62,2 @@

### 0.5.0 / 2013-05-05

@@ -75,3 +68,2 @@

### 0.4.4 / 2013-02-14

@@ -81,3 +73,2 @@

### 0.4.3 / 2012-07-09

@@ -88,3 +79,2 @@

### 0.4.2 / 2012-04-06

@@ -95,3 +85,2 @@

### 0.4.1 / 2012-02-26

@@ -101,3 +90,2 @@

### 0.4.0 / 2012-02-13

@@ -109,3 +97,2 @@

### 0.3.1 / 2012-01-16

@@ -115,3 +102,2 @@

### 0.3.0 / 2012-01-13

@@ -121,3 +107,2 @@

### 0.2.0 / 2011-12-21

@@ -130,3 +115,2 @@

### 0.1.2 / 2011-12-05

@@ -137,3 +121,2 @@

### 0.1.1 / 2011-11-30

@@ -143,5 +126,4 @@

### 0.1.0 / 2011-11-27
* Initial release, based on WebSocket components from Faye

2

lib/faye/websocket/api.js

@@ -161,2 +161,4 @@ var Stream = require('stream').Stream,

if (this._pingTimer) clearInterval(this._pingTimer);
if (this._stream) this._stream.end();
if (this.readable) this.emit('end');

@@ -163,0 +165,0 @@ this.readable = this.writable = false;

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

, "version" : "0.9.2"
, "version" : "0.9.3"
, "engines" : {"node": ">=0.4.0"}

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

@@ -9,8 +9,7 @@ # faye-websocket

This is a general-purpose WebSocket implementation extracted from the
[Faye](http://faye.jcoglan.com) project. It provides classes for easily
building WebSocket servers and clients in Node. It does not provide a server
itself, but rather makes it easy to handle WebSocket connections within an
existing [Node](http://nodejs.org/) application. It does not provide any
abstraction other than the standard [WebSocket
API](http://dev.w3.org/html5/websockets/).
[Faye](http://faye.jcoglan.com) project. It provides classes for easily building
WebSocket servers and clients in Node. It does not provide a server itself, but
rather makes it easy to handle WebSocket connections within an existing
[Node](http://nodejs.org/) application. It does not provide any abstraction
other than the standard [WebSocket API](http://dev.w3.org/html5/websockets/).

@@ -81,6 +80,5 @@ It also provides an abstraction for handling

send a ping message and wait for the client's response. This method takes a
message string, and an optional callback that fires when a matching pong
message is received. It returns `true` iff a ping message was sent. If the
client does not support ping/pong, this method sends no data and returns
`false`.
message string, and an optional callback that fires when a matching pong message
is received. It returns `true` iff a ping message was sent. If the client does
not support ping/pong, this method sends no data and returns `false`.

@@ -174,3 +172,3 @@ ```js

var ws = new WebSocket(request, null, {extensions: [deflate]});
var ws = new WebSocket(request, socket, body, null, {extensions: [deflate]});
```

@@ -181,4 +179,4 @@

Both the server- and client-side classes allow an options object to be passed
in at initialization time, for example:
Both the server- and client-side classes allow an options object to be passed in
at initialization time, for example:

@@ -200,4 +198,4 @@ ```js

The default value is `2^26 - 1`, or 1 byte short of 64 MiB.
* `ping` - an integer that sets how often the WebSocket should send ping
frames, measured in seconds
* `ping` - an integer that sets how often the WebSocket should send ping frames,
measured in seconds

@@ -226,9 +224,9 @@ The client accepts some additional options:

* <b>`on('close', function(event) {})`</b> fires when either the client or the
server closes the connection. Event has two optional attributes,
<b>`code`</b> and <b>`reason`</b>, that expose the status code and message
sent by the peer that closed the connection.
server closes the connection. Event has two optional attributes, <b>`code`</b>
and <b>`reason`</b>, that expose the status code and message sent by the peer
that closed the connection.
* <b>`send(message)`</b> accepts either a `String` or a `Buffer` and sends a
text or binary message over the connection to the other peer.
* <b>`ping(message = '', function() {})`</b> sends a ping frame with an
optional message and fires the callback when a matching pong is received.
* <b>`ping(message = '', function() {})`</b> sends a ping frame with an optional
message and fires the callback when a matching pong is received.
* <b>`close(code, reason)`</b> closes the connection, sending the given status

@@ -238,4 +236,4 @@ code and reason text, both of which are optional.

protocol the connection is using.
* <b>`protocol`</b> is a string (which may be empty) identifying the
subprotocol the socket is using.
* <b>`protocol`</b> is a string (which may be empty) identifying the subprotocol
the socket is using.

@@ -293,4 +291,4 @@

* <b>`lastEventId`</b> is a string containing the last event ID received by the
client. You can use this when the client reconnects after a dropped
connection to determine which messages need resending.
client. You can use this when the client reconnects after a dropped connection
to determine which messages need resending.

@@ -304,5 +302,5 @@ When you initialize an EventSource with ` new EventSource()`, you can pass

should wait after a dropped connection before attempting to reconnect.
* <b>`ping`</b> is a number that tells the server how often (in seconds) to
send 'ping' packets to the client to keep the connection open, to defeat
timeouts set by proxies. The client will ignore these messages.
* <b>`ping`</b> is a number that tells the server how often (in seconds) to send
'ping' packets to the client to keep the connection open, to defeat timeouts
set by proxies. The client will ignore these messages.

@@ -329,3 +327,3 @@ For example, this creates a connection that allows access from any origin, pings

Copyright (c) 2010-2014 James Coglan
Copyright (c) 2010-2015 James Coglan

@@ -335,5 +333,5 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

@@ -344,7 +342,6 @@ The above copyright notice and this permission notice shall be included in all

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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