As per discord's api, the library should send a "heartbeat" event to the websocket every x seconds... Which the seconds are received on the HelloEvent that discord sends us on new connection,
This is tricky with regular blocking websockets, because we will need to introduce threading and rewrite a big portion of the general logic. For now, we will just skip this functionality and return back to it after we migrate the lib to tokio.
As per discord's api, the library should send a "heartbeat" event to the websocket every x seconds... Which the seconds are received on the
HelloEvent
that discord sends us on new connection,This is tricky with regular blocking websockets, because we will need to introduce threading and rewrite a big portion of the general logic. For now, we will just skip this functionality and return back to it after we migrate the lib to tokio.
Documentation