Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

websocket-stream

Package Overview
Dependencies
Maintainers
5
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 5.2.0 to 5.3.0

2

package.json
{
"name": "websocket-stream",
"version": "5.2.0",
"version": "5.3.0",
"license": "BSD-2-Clause",

@@ -5,0 +5,0 @@ "description": "Use websockets with the node streams API. Works in browser and node",

@@ -75,6 +75,2 @@ 'use strict'

stream = proxy
} else if (isBrowser) {
stream = proxy
stream.cork()
socket.onopen = onopenBrowser
} else {

@@ -139,7 +135,2 @@ stream = duplexify.obj()

function onopenBrowser () {
stream.uncork()
stream.emit('connect')
}
function onclose() {

@@ -146,0 +137,0 @@ stream.end()

@@ -62,14 +62,1 @@ var ws = require('./')

})
test('cork logic test', function (t) {
var stream = ws('ws://localhost:8343', { binary: true })
stream.on('data', function(o) {
t.equal(o.toString(), 'hello', 'success!')
stream.destroy()
t.end()
})
stream.cork()
stream.write('he')
stream.write('l')
stream.write('lo')
stream.uncork()
})
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