Socket
Socket
Sign inDemoInstall

websocket-stream

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

websocket-stream - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

index.js

@@ -28,2 +28,4 @@ var through = require('through2')

}
stream.socket = socket

@@ -30,0 +32,0 @@ socket.addEventListener("close", onclose)

2

package.json
{
"name": "websocket-stream",
"version": "1.0.0",
"version": "1.0.1",
"description": "Use websockets with the node streams API. Works in browser and node",

@@ -5,0 +5,0 @@ "scripts": {

@@ -5,7 +5,7 @@ # websocket-stream

Use HTML5 [websockets](https://developer.mozilla.org/en-US/docs/WebSockets) using the Node Streams API. Works in Node or in Browsers.
Use HTML5 [websockets](https://developer.mozilla.org/en-US/docs/WebSockets) using the Node Streams API.
### In the browser
### Usage
You can use [browserify](http://github.com/substack/node-browserify) to package this module for browser use.
This module works in Node or in Browsers that support WebSockets. You can use [browserify](http://github.com/substack/node-browserify) to package this module for browser use.

@@ -20,2 +20,4 @@ ```javascript

The underlying `WebSocket` instance is available as `ws.socket`.
### On the server

@@ -35,16 +37,15 @@

## run the tests
## Run the tests
### server-side tests
### Server-side tests
```
npm test
```
### client side tests
### Client-side tests
first start the echo server by running `node test-server.js`
First start the echo server by running `node test-server.js`
then run `npm start` and open `localhost:9966` in your browser and open the Dev Tools console to see test output
Then run `npm start` and open `localhost:9966` in your browser and open the Dev Tools console to see test output.

@@ -51,0 +52,0 @@ ## license

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