Skip to content

Commit

Permalink
Log remote messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rationalsa committed Jan 27, 2022
1 parent b9c1eb4 commit 049a3d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion belaUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ wss.on('connection', function connection(conn) {
}

conn.on('message', function incoming(msg) {
console.log(msg);
try {
msg = JSON.parse(msg);
handleMessage(conn, msg);
Expand Down Expand Up @@ -1881,6 +1880,8 @@ function tryAuth(conn, msg) {


function handleMessage(conn, msg, isRemote = false) {
console.log(msg);

if (!isRemote) {
for (const type in msg) {
switch(type) {
Expand Down

0 comments on commit 049a3d8

Please sign in to comment.