feat(socketio): print socket.io address on socketio.js (#33639)

This enables auto port-forwards in IDEs like VSCode and friends.

Signed-off-by: ismail <ismail@tektician.com>
This commit is contained in:
ismxilxrif 2025-09-04 13:39:41 +08:00 committed by GitHub
parent d0fde0837e
commit c6c6a9ed59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,5 +90,9 @@ const subscriber = get_redis_subscriber();
let uds = conf.socketio_uds;
let port = conf.socketio_port;
server.listen(uds || port, () => {
console.log("Realtime service listening on: ", uds || port);
if (uds) {
console.log(`Realtime service listening on UDS: ${uds}`);
} else {
console.log(`Realtime service listening on: ws://0.0.0.0:${port}`);
}
});