Cogmasters / concord

A Discord API wrapper library made in C
https://cogmasters.github.io/concord/
MIT License
523 stars 30 forks source link

Fix permanent shutdowns (TLS & 1000 close code) #168

Closed ThePedroo closed 10 months ago

ThePedroo commented 10 months ago

Notice

What?

This PR fixes an fatal issue that would block Concord from reconnecting to the gateway.

Why?

To allow bots to run for a long time, not being disconnecting without reconnecting.

How?

This includes various fixes about connections, both TLS and 1000 WS status code.

Testing?

It was tested by persons on Cogmaster's Discord and verified that the fix is working, properly reconnecting when disconnected abruptly.