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 1.0.32 to 1.0.33

2

package.json
{
"name": "websockets-streaming-audio",
"version": "1.0.32",
"version": "1.0.33",
"author": "Scott Stensland <scottstensland@gmail.com> (http://catfoodnation.com/)",

@@ -5,0 +5,0 @@ "bugs": {

@@ -273,3 +273,4 @@

console.log(" browser queue " + curr_browser_queue_size);
// bbbb useful logging
// console.log(" browser queue " + curr_browser_queue_size);

@@ -276,0 +277,0 @@ return audio_from_server_obj[pop_index++];

@@ -13,5 +13,3 @@

var ignore_console = (function() {
var send_console_to_browser = (function() {
// var console = (function() {

@@ -69,3 +67,4 @@

throw new Error("ERROR - boo hoo ... websockets is not available on this browser - use firefox");
send_console_to_browser.log("ERROR - boo hoo ... websockets is not available on this browser - use firefox");
return;
}

@@ -79,3 +78,3 @@

console.log("very cool web sockets are supported by your browser");
send_console_to_browser.log("very cool web sockets are supported by your browser");

@@ -142,3 +141,3 @@ var host = location.origin.replace(/^http/, 'ws');

throw new Error(error_msg + " " + requested_source); // sent back to browser html
send_console_to_browser.log(error_msg + " " + requested_source); // sent back to browser html

@@ -164,5 +163,6 @@ } else if (typeof received_json.sample_rate !== "undefined") {

console.error(received_json);
send_console_to_browser.log("ERROR - invalid JSON ");
send_console_to_browser.log(received_json);
throw new Error("ERROR - invalid JSON ");
// throw new Error("ERROR - invalid JSON ");
}

@@ -227,4 +227,4 @@

web_socket.onerror = function(error_stream) {
console.log('ERROR - fault on socket');
send_console_to_browser.log('ERROR - fault on socket');

@@ -235,4 +235,5 @@ for (var curr_property in error_stream) {

console.log("error property " + curr_property + " -->" + error_stream[curr_property] +
"<-- ");
send_console_to_browser.log("error property " +
curr_property + " -->" + error_stream[curr_property] +
"<-- ");
}

@@ -249,3 +250,3 @@ }

console.log("NOTICE - onclose with message");
send_console_to_browser.log("NOTICE - onclose with message");

@@ -262,11 +263,8 @@ flag_connection_active = false;

console.log("curr_property " + curr_property + " -->" + close_event[curr_property] +
"<-- ");
send_console_to_browser.log("curr_property " +
curr_property + " -->" + close_event[curr_property] +
"<-- ");
}
}
// bbbbbbbbbbbbbbbb
// send browser stop message
var streaming_is_done_msg = {

@@ -278,4 +276,4 @@

console.log("streaming_is_done_msg");
console.log(streaming_is_done_msg);
send_console_to_browser.log("streaming_is_done_msg");
send_console_to_browser.log(streaming_is_done_msg);

@@ -290,3 +288,3 @@ self.postMessage(streaming_is_done_msg);

console.log("NOTICE - onopen just called");
send_console_to_browser.log("NOTICE - onopen just called");

@@ -373,3 +371,3 @@ flag_connected = true; // stens TODO put this in correct callback above

console.error("ERROR - no web socket connection");
send_console_to_browser.error("ERROR - no web socket connection");
return;

@@ -391,3 +389,3 @@ }

console.log("NOTICE - about to close socket intentionally");
send_console_to_browser.log("NOTICE - about to close socket intentionally");

@@ -394,0 +392,0 @@ web_socket.close();

@@ -25,5 +25,18 @@

var ignore_console = (function() {
// var console = (function() {
// return {
// log : function(given_str) {
// send_console_to_browser(given_str);
// }
// };
// }());
var send_console_to_browser = (function() {
// var console = (function() {
function getScriptName() {

@@ -199,3 +212,3 @@ var error = new Error();

console.log("cb_stream_is_complete ... given_max_index " + given_max_index);
send_console_to_browser.log("cb_stream_is_complete ... given_max_index " + given_max_index);

@@ -497,3 +510,3 @@ // bbbbbbbbbbbb

throw new Error("ERROR - invalid browser_directed_mode : " +
send_console_to_browser.log("ERROR - invalid browser_directed_mode : " +
received_json.browser_directed_mode);

@@ -505,3 +518,3 @@ }

throw new Error("ERROR - ww did receive string from browser" +
send_console_to_browser.log("ERROR - ww did receive string from browser" +
"... yet NOT seeing browser_directed_mode");

@@ -512,5 +525,5 @@ }

throw new Error("ERROR - ww received NON string from browser" +
send_console_to_browser.log("ERROR - ww received NON string from browser" +
"... maybe event.data instanceof ArrayBuffer ");
}
};
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