mirror of
https://github.com/SirHumza/orbisRPC.git
synced 2026-10-06 17:00:43 +02:00
The public Discord gateway rejects OAuth2 access tokens (close 4004), so v1 could never set presence: switch config to a raw user token and delete the oauth/http module. - handle close frames; exit fatal on 4004 instead of looping forever - fix reversed IPv4 packing in sceNetConnect (wrong host) - fix SSL_read treating WANT_READ/no-data as disconnect - keep frame bytes glued to the 101 handshake response (HELLO) - grow recv buffer for large READY payloads; drain-and-skip >2MB - mask all client frames incl. control; overflow-safe length checks - drop RESUME (was dead: connect wiped session_id); fresh IDENTIFY - clear presence stays online, add elapsed timestamps - tick gateway every second so heartbeats never land late - connect backoff 5s..300s; live config reload each cycle