Comparing version 0.5.3 to 0.5.4
@@ -18,2 +18,6 @@ var MuxDemux = require('mux-demux'), | ||
// if we don't have a room stream just return the client | ||
// as we are doing things manually | ||
if (! roomStream) return client; | ||
// if the room is not an instanceof stream, do a few checks | ||
@@ -30,6 +34,2 @@ if (! (roomStream instanceof Stream)) { | ||
// if we don't have a room stream just return the client | ||
// as we are doing things manually | ||
if (! roomStream) return client; | ||
// pipe from the new client into the stream and back | ||
@@ -36,0 +36,0 @@ client.pipe(roomStream).pipe(client); |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"engines": { | ||
@@ -13,0 +13,0 @@ "node": ">= 0.8.x < 0.9.0" |
@@ -52,2 +52,8 @@ # Chat | ||
For the full example, see [examples/hello.js](examples/hello.js). | ||
For the full example, see [examples/hello.js](examples/hello.js). | ||
## Transport Free | ||
Obviously, this isn't the first chat implementation written in Node. It is, however, one of the first to be written that isn't tied to a specific transport implementation (usually WebSockets). | ||
An example of a pure socket level chat server and client can be found in the [examples](examples/) directory. |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
35804
21
844
58
2