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

amqp10-transport-ws

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amqp10-transport-ws - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

16

lib/index.js

@@ -27,5 +27,12 @@ 'use strict';

this._socket.on('connect', function () { self.emit('connect'); });
this._socket.on('error', function (err) { self.emit('error', err); });
this._socket.on('error', function (err) {
self.hasError = true;
self.emit('error', err);
});
this._socket.on('text', function (text) { self.emit('data', text); });
this._socket.on('close', function (code, reason) { self.emit('end', code + ": " + reason); });
this._socket.on('close', function (code, reason) {
process.nextTick(function() {
self.emit('end', code + ": " + reason);
});
});

@@ -60,6 +67,7 @@ this._socket.on('binary', function (inStream) {

if (this._socket.readyState !== this._socket.CLOSED) {
this._socket.removeAllListeners();
if (this._socket.readyState !== this._socket.CLOSED && !this.hasError) {
this._socket.close();
}
this._socket.removeAllListeners();
};

@@ -66,0 +74,0 @@

{
"name": "amqp10-transport-ws",
"version": "0.0.3",
"version": "0.0.4",
"description": "Provides a Websocket implementation for the transport layer for node-amqp10.",

@@ -5,0 +5,0 @@ "main": "./lib",

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