mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 11:25:22 +02:00
Use envvar TITAN_GATEWAY_ID to name each gateway workers
This commit is contained in:
@ -2122,6 +2122,14 @@
|
||||
socket.emit('identify', {"guild_id": guild_id, "visitor_mode": visitor_mode});
|
||||
process_message_users_cache();
|
||||
});
|
||||
|
||||
socket.on('hello', function (msg) {
|
||||
var gateway_identifier = msg.gateway_identifier;
|
||||
if (!gateway_identifier) {
|
||||
gateway_identifier = "null";
|
||||
}
|
||||
console.log("%c[TitanEmbeds]%cConnected to gateway via%c" + gateway_identifier, 'color:aqua;background-color:black;border:1px solid black;padding: 3px;', 'color:white;background-color:black;border:1px solid black;padding: 3px;', 'color:white;background-color:black;border:1px solid black;font-family: Courier;padding: 3px;');
|
||||
});
|
||||
|
||||
socket.on("disconnect", function () {
|
||||
|
||||
|
Reference in New Issue
Block a user