MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / logIfDebug

Function logIfDebug

src/plugins/websocket/www/websocket.js:7–12  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

5let DEBUG = false;
6
7const logIfDebug = (...args) => {
8 console.log("DEBUG flag -> ", cordova.websocket.DEBUG)
9 if (cordova.websocket.DEBUG) {
10 console.log(...args);
11 }
12};
13
14class WebSocketInstance extends EventTarget {
15 constructor(url, instanceId, binaryType) {

Callers 3

constructorMethod · 0.85
sendMethod · 0.85
closeMethod · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected