mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Reconnect to gateway after disconnect
This commit is contained in:
parent
9002841933
commit
f9ef4569f4
@ -2132,7 +2132,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on("disconnect", function () {
|
socket.on("disconnect", function () {
|
||||||
|
setTimeout(function () {
|
||||||
|
if (soccket) {
|
||||||
|
soccket = null;
|
||||||
|
initiate_websockets();
|
||||||
|
}
|
||||||
|
}, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on("revoke", function () {
|
socket.on("revoke", function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user