Named the socketio endpoint to gateway

This commit is contained in:
Jeremy Zhang 2017-08-19 07:30:19 +00:00
parent 6b3ada44db
commit 1be0177562
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@
}
/* SocketIO Test */
var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port + "/gateway");
var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port + "/gateway", {path: '/gateway'});
socket.on('connect', function() {
console.log("Socket.IO Connected!");
});

View File

@ -90,4 +90,4 @@ def bot_alive():
return results
rate_limiter = Limiter(key_func=get_client_ipaddr) # Default limit by ip address
socketio = SocketIO()
socketio = SocketIO(path='gateway')