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

websocket-stream

Package Overview
Dependencies
Maintainers
1
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 0.0.3 to 0.0.4

4

index.js

@@ -34,4 +34,4 @@ var stream = require('stream')

WebsocketStream.prototype.onMessage = function(e, flags) {
this.emit('metadata', e, flags)
this.emit('data', e.data)
if (e.data) return this.emit('data', e.data, flags)
this.emit('data', e, flags)
}

@@ -38,0 +38,0 @@

@@ -5,3 +5,3 @@ {

"keywords": ["websocket", "websockets", "stream", "streams", "realtime"],
"version": "0.0.3",
"version": "0.0.4",
"_npmUser": {

@@ -8,0 +8,0 @@ "name": "maxogden",

@@ -35,4 +35,2 @@ # websocket-stream

the `metadata` event has the full websocket event
you can pass in a custom protocol to the constructor as the second argument

@@ -39,0 +37,0 @@

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