#ws shenanigans

1 messages · Page 1 of 1 (latest)

upper orbit
#

@dapper wyvern what even is 1000 in discord? any idea?
interactionCreate just stops emitting after a few mins, which makes sense, if the ws can't be resurrected, can't emit events either

dapper wyvern
#

1000 is normal close

upper orbit
#

yes, but what is a normal close in discord?

#

ws shenanigans

dapper wyvern
#

Its just a normal close cuz they said so

upper orbit
#

buuuut it doesn't reconnect

dapper wyvern
#

Probably because it dead locks due to the interval payload which triggered at unoportune time

upper orbit
#

not a one off either, apparently reproable

#

any ideas?

peak hound
#

hi

#

im back

peak hound
storm dust
#

Isn’t 1000 unknown error? my bad, that was for RPC…

peak hound
#

apparently no

upper orbit
#

4k is unknown
1k is normal

peak hound
#

@upper orbit @dapper wyvern @storm dust I finally figured it out, i was using my sleep function that took ms instead of s, and i was passing 30 as timeout between each two presences so it will spam the websocket until it disconnected, perhaps close this thread?

dapper wyvern
#

it'll auto close, dw