Skip to content

Commit

Permalink
improved socketio console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
christophevg committed Feb 28, 2024
1 parent 93f0e86 commit 19b5dd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions baseweb/static/js/socketio.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ if( app.socketio ) {

socket.on("connect", function() {
app.connected = true;
console.log("CONNECTED");
console.log("🛜 socketio: connected to backend...");
});

socket.on("disconnect", function() {
app.connected = false;
console.log("DISCONNECTED");
console.log("🛜 socketio: disconnected from backend");
});

} else {
var socket = {
"on" : function() {
console.log("no socketio support enabled...");
console.log("socketio: support not enabled...");
},
"emit" : function(channel, args, callback) {
console.log("no socketio support enabled...");
callback("no socketio support enabled...");
console.log("socketio: support not enabled...");
callback("🛜 socketio: support not enabled...");
}
}
}

0 comments on commit 19b5dd2

Please sign in to comment.