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

obyte

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obyte - npm Package Compare versions

Comparing version 0.1.17 to 0.1.18

16

lib/wsclient.js

@@ -55,4 +55,4 @@ 'use strict';

this.lastSentTimestamp = null;
this.notifications = function () {};
this.onConnectCallback = function () {};
this.notifications = [];
this.onConnectCallbacks = [];
this.connect = function () {

@@ -108,3 +108,5 @@ var ws = new WebSocket(address);

} else {
_this.notifications(null, message);
_this.notifications.forEach(function (n) {
return n(null, message);
});
}

@@ -122,3 +124,5 @@ });

_this.open = true;
_this.onConnectCallback();
_this.onConnectCallbacks.forEach(function (cb) {
return cb();
});
}

@@ -145,3 +149,3 @@ });

value: function onConnect(cb) {
this.onConnectCallback = cb;
this.onConnectCallbacks.push(cb);
}

@@ -151,3 +155,3 @@ }, {

value: function subscribe(cb) {
this.notifications = cb;
this.notifications.push(cb);
}

@@ -154,0 +158,0 @@ }, {

{
"name": "obyte",
"version": "0.1.17",
"version": "0.1.18",
"description": "A pure and powerful JavaScript Obyte library",

@@ -5,0 +5,0 @@ "homepage": "https://obytejs.com",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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