mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Add version to socketio connection url
This commit is contained in:
parent
de6fa1f932
commit
7c9868c373
@ -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});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user