Skip to content

Commit

Permalink
add to string function to be save
Browse files Browse the repository at this point in the history
  • Loading branch information
cracker0dks committed Jan 9, 2022
1 parent 8919fa4 commit b50c359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ wss.on('connection', function(ws) {
console.log("~~~~~~~~ WELCOME TO SERVER ~~~~~~ s:"+subscribers.length);
ws.on('message', function(message) {
console.log('msg: ' + message);
var parts = message.split("###");
var parts = message.toString().split("###");
if(parts[0] != "fileOp") {
broadcastMessage(getClientId(), message);
} else {
Expand Down

0 comments on commit b50c359

Please sign in to comment.