Get Heartbeat of Gateway

Mostly I need a way to check the connection status to the Discord API for a healthcheck. Is there any way in Kord to easily get this?
2 Replies
SchlaubiBus
SchlaubiBus6d ago
you should be able to check whether the Gateways coroutine scope isActive, as when it gives up to reconnect it closes
LustigerLurch
LustigerLurch5d ago
there is also Gateway.ping and MasterGateway.averagePing
Want results from more Discord servers?
Add your server