Skip to content
Snippets Groups Projects
Commit b9e4d662 authored by Nils G.'s avatar Nils G.
Browse files

Filter join and leave websocket messages

parent 27fb1897
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,9 @@
ws.onmessage = function(e) {
var firstColon = e.data.indexOf(":");
if(firstColon === -1) {
if(e.data.startsWith("+") || e.data.startsWith("-")) {
return;
}
set_error("{{=T('Invalid WebSocket data received')}}: '" + e.data + "'");
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment