websockets-streaming-audio
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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); | ||
}); | ||
}); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
192772
24
1682
4