Add version to socketio connection url

This commit is contained in:
Jeremy Zhang 2019-10-31 16:12:25 -07:00
parent de6fa1f932
commit 7c9868c373

View File

@ -2118,7 +2118,7 @@
return; return;
} }
socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port + "/gateway", {path: '/gateway', transports: ['websocket']}); socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port + "/gateway", {path: '/gateway', transports: ['websocket'], query: "v=1"});
socket.on('connect', function () { socket.on('connect', function () {
socket.emit('identify', {"guild_id": guild_id, "visitor_mode": visitor_mode}); socket.emit('identify', {"guild_id": guild_id, "visitor_mode": visitor_mode});
}); });