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.1 to 1.0.2

5

index.js

@@ -7,4 +7,3 @@ var through = require('through2')

function WebSocketStream(target, options) {
if (!options) options = {}
function WebSocketStream(target, protocols) {
var stream, socket

@@ -18,3 +17,3 @@ var proxy = through(socketWrite, socketEnd)

} else {
socket = new WS(target, options)
socket = new WS(target, protocols)
socket.binaryType = 'arraybuffer'

@@ -21,0 +20,0 @@ }

2

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

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

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