New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chat

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chat - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

examples/socket-client.js

8

client.js

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc