Open incognico opened 3 years ago
ccfbf90 slipped in here. Revert that one (or not), as you wish.
I've made some of these changes in my local copy. I'll likely end up just closing the pull request once I've pushed my own changes, but thank you, this was helpful.
$code parameter added in fa2ed0430114df3e0523d9932a58c8711737ad99
$code
parameter to$discord->disconnect()
to allow for normal closures from a client, e.g. to gracefully close with 1000 after SIGINTSEQ
on new sessions so the heartbeating does not use the oldSEQ
ID until the correct one is received againwebsocket_url
when resuming. Since a while the Mojo UA sometimes gives me aPremature connection close
insub gateway
, not sure why - so this is a workaround. But I'm pretty sure that if this url ever changes it would require a new session anyways so why not use the cached one on resume.