preparing to send other commands than 'reload' to clients
This commit is contained in:
		@@ -33,7 +33,12 @@
 | 
			
		||||
 | 
			
		||||
        socket.onmessage = function(event) {
 | 
			
		||||
            //alert(`[message] Data received from server: ${event.data}`);
 | 
			
		||||
            location.reload(true)
 | 
			
		||||
            if (event.data == "reload") {
 | 
			
		||||
                location.reload(true);
 | 
			
		||||
            }
 | 
			
		||||
            else {
 | 
			
		||||
                alert('unknown command: '+event.data);
 | 
			
		||||
            }
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
        socket.onclose = function(event) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user