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

websockets-streaming-audio

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

websockets-streaming-audio - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

src/app.js~with.delays

2

package.json

@@ -33,3 +33,3 @@ {

"subdomain": "websockets-streaming-audio",
"version": "0.2.0"
"version": "0.2.1"
}

@@ -72,2 +72,3 @@ var WebSocketServer = require("ws").Server

var wrap_stats = function() {

@@ -79,3 +80,3 @@

ws.send(JSON.stringify(process.memoryUsage()), function() { /* ignore errors */ });
ws.send(JSON.stringify(process.memoryUsage()), function() {});

@@ -85,4 +86,20 @@ }, 100);

var ID_timeout = setTimeout(wrap_stats, 2000);
var ID_timeout = setTimeout(wrap_stats, 20);
// ---
// var stats_id;
// (function run() {
// ws.send(JSON.stringify(process.memoryUsage()), function() { /* ignore errors */ });
// var stats_id = setInterval(run, 100);
// }());
console.log("websocket connection open");

@@ -107,5 +124,6 @@

clearInterval(wrap_stats.stats_id);
// clearInterval(run.stats_id);
// clearInterval(ID_write);
clearTimeout(ID_timeout);
// clearTimeout(ID_timeout);
});
});
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