Commit Graph

136 Commits

Author SHA1 Message Date
ITOH
f1c4ad2896 Merge pull request #875 from discordeno/todos
Complete some TODOs
2021-04-30 18:45:47 +02:00
ayntee
379d332492 Complete some TODOs 2021-04-30 16:03:26 +04:00
ITOH
c0a549a634 Update tell_cluster_to_identify.ts 2021-04-29 11:16:31 +02:00
ITOH
10b824901c Merge branch 'main' into fix-sbbb 2021-04-29 11:00:15 +02:00
ITOH
be2bbbdd99 autoconvert handler messages 2021-04-24 23:17:11 +02:00
ITOH
320c9b4b91 Update handle_on_message.ts 2021-04-16 19:16:08 +02:00
ITOH
6a0ab380e7 Update resume.ts 2021-04-16 19:15:12 +02:00
ITOH
2ce185a696 Update heartbeat.ts 2021-04-16 19:15:01 +02:00
ITOH
6315ba75fc add sendShardMessage 2021-04-16 19:14:48 +02:00
ITOH
98bf292aff fix lint 2021-04-15 18:06:31 +02:00
ITOH
03d98a6953 back 2021-04-15 17:33:29 +02:00
ITOH
08b80a1e64 Update ws.ts 2021-04-15 16:48:11 +02:00
ITOH
8c52abce7f add closeWS function 2021-04-15 16:46:44 +02:00
ITOH
2c97964f0f heartbeat change 2021-04-15 14:25:26 +02:00
ITOH
f5d6a85882 uups 2021-04-15 13:22:22 +02:00
ITOH
b2ed4b4f69 remove the as number 2021-04-15 13:22:14 +02:00
ITOH
43de5125d9 move buckets to ws in favour of createNextShard 2021-04-15 13:15:50 +02:00
ITOH
92622a10e0 use 3065 ? 2021-04-15 12:15:51 +02:00
ITOH
a5fe03b3ba add doc link 2021-04-15 12:14:27 +02:00
ITOH
7f85fdbac5 add doc comment 2021-04-15 12:12:11 +02:00
ITOH
a8cabc6967 only close if open 2021-04-15 12:06:12 +02:00
ITOH
e95fcc9305 check if dc ack beat 2021-04-15 12:01:25 +02:00
ITOH
e8a1bf68f8 Update heartbeat.ts 2021-04-15 11:51:54 +02:00
ITOH
23779d7a89 better info comment 2021-04-15 10:42:00 +02:00
ITOH
6e02b14cdc Update resume.ts 2021-04-15 10:40:34 +02:00
ITOH
28ff1574d8 use setTimeout for heartbeat in favour of first random interval 2021-04-15 10:40:07 +02:00
ITOH
81a3bc3c26 Wait for a random amount of time between 1 and 5 seconds before resuming 2021-04-15 09:44:33 +02:00
ITOH
6e404876fd fix(ws): resume identify when oldShard is undefined 2021-04-15 09:35:00 +02:00
ITOH
1ff48bc446 add queueCounter 2021-04-15 09:15:35 +02:00
ITOH
62c2caed99 fix: spawnShards wrong loop debug data 2021-04-15 09:15:03 +02:00
ITOH
f3f7eacc1c fix: don't reset ws.processQueue counter on every new loop 2021-04-15 09:14:40 +02:00
ITOH
6d497b1277 fix Discord Heartbeat request
We assume that discord only sends it while we don't have hit the 120 request limit
2021-04-15 09:13:52 +02:00
Skillz4Killz
ff5d086562 fix: move createNextShard to ws 2021-04-14 20:23:58 +00:00
ITOH
de93b0ae20 Merge pull request #859 from discordeno/ws-fixxxxxxeessssssss
fix some ws things (better title later when I found and finished fixing stuff)
2021-04-14 21:13:13 +02:00
ITOH
07587f42a1 queueStartedAt 2021-04-14 21:05:40 +02:00
ITOH
3f77e8e9e1 Update process_queue.ts 2021-04-14 21:00:11 +02:00
ITOH
6a0f2fdef5 Update resume.ts 2021-04-14 20:59:51 +02:00
Skillz4Killz
f223d654bd Commit from GitHub Actions (Lint) 2021-04-14 18:55:58 +00:00
Skillz4Killz
29e682ed30 fix: random heartbeat request 2021-04-14 18:55:30 +00:00
ITOH
1235a08f29 Merge branch 'main' into ws-fixxxxxxeessssssss 2021-04-14 20:54:40 +02:00
Skillz4Killz
dc27bc3da1 fix: delay each shard by 5 seconds 2021-04-14 18:06:41 +00:00
Skillz4Killz
70a4a1f955 fix: use private close clode 2021-04-14 18:06:11 +00:00
ITOH
1019a05cc4 bug 2021-04-14 19:23:26 +02:00
ITOH
4c097d4e17 add queueMinuteTimestamp 2021-04-14 19:10:55 +02:00
ITOH
54ce040120 fix old interval continues after new identify 2021-04-14 18:30:59 +02:00
ITOH
74f874482e just beat ws directly 2021-04-14 18:24:36 +02:00
ITOH
41a0ce0a4e reserve 2 calls for heartbeating 2021-04-14 18:07:39 +02:00
Skillz4Killz
dc9615bb8a feat: slash dm (#846)
* chore: cleanup comments

* feat: slash in dm and better event args

Co-authored-by: Skillz4Killz <Skillz4Killz@users.noreply.github.com>
2021-04-13 18:28:31 +01:00
Skillz4Killz
72618947f0 feat: implement gateway queue (#844)
* feat: implement gateway queue

* process queues when adding to queue

* fix: tests fixed ready for review

* handle shard closed

Co-authored-by: Skillz4Killz <Skillz4Killz@users.noreply.github.com>
2021-04-13 17:29:35 +01:00
ayntee
b633689d3a Format files 2021-04-13 06:05:20 +00:00