add to string function to be save

This commit is contained in:
Raphael 2022-01-09 23:30:27 +01:00
parent 8919fa4f9a
commit b50c359f70

View File

@ -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 {