Amish Shah
195fcfa15c
Rewrite WebSocket internals ( #1410 )
...
* Start rewriting Manager and Connection
* more stuff
* stuff
* Fix ready bug
* some stuff i forgot
* fix some stuff
* add stupid heartbeat ack like seriously who cares
* woo!
* fix a bug
* rate limit the dumb websocket
* stuff
* hdocs
* Docs
* Remove ClientManager#setupKeepAlive as it is now redundant
* Change Client._pingTimestamp to a getter that fetches the timestamp from the WebSocketConnection
* are you happy now eslint smh
* make gus happy
* Add CloseEvent external doc
* Make sure to emit 'reconnecting' when actually reconnecting
* ffs
* Fix RESUME logic
* Add heartbeat ack debug messages, including latency data
* Dumb stuff for Gus
* thx eslint
* more dumb stuff
* more dumb crap smh gus i h8 u
* moar messages
* fix for using wrong status, causing certain events not to be fired (#1422 )
2017-04-28 16:13:06 +01:00
Amish Shah
25e0048bbf
remove useless waiting reference
2017-04-11 17:59:27 +01:00
Amish Shah
6495df50f9
Fix sequential rate limiting
2017-04-11 17:54:03 +01:00
SpaceEEC
ecb8655dac
Document readonly and private properties ( #1338 )
2017-04-03 20:05:36 +02:00
Schuyler Cebulskie
136cab240d
Add new ESLint rules
2017-03-17 01:23:39 -04:00
Gus Caplan
ec1ed15c88
Fix request handling ( #1180 )
...
* clean up ratelimiters, and disable burst until some big questions are handled
* burst mode is a work
* fix burst again
2017-02-11 12:04:24 +00:00
Schuyler Cebulskie
74c3bae506
Teensy weensy cleanup
2016-12-24 19:54:37 -05:00
Schuyler Cebulskie
ab30715028
Fix Hydar's lint errors
2016-12-24 19:49:24 -05:00
Amish Shah
544e456302
Add ClientOptions.restTimeOffset for better performance for bots with a good network connection
2016-12-24 12:13:42 +00:00
Schuyler Cebulskie
6a94658dd7
Clean up some stuff
2016-09-19 04:32:24 -04:00
Amish Shah
e75dd2638c
Add Burst requests - addresses #656
2016-09-10 22:12:10 +01:00
Schuyler Cebulskie
0b908f5bce
Cleanup Part 2: Electric Boogaloo (Reloaded) ( #594 )
...
* Cleanup Part 2: Electric Boogaloo (Reloaded)
* Moar cleanup
* Tweak NOT_A_PERMISSION error
2016-09-04 10:08:09 +01:00
Schuyler Cebulskie
68acf37fd4
Add stricter/better ESLint config ( #589 )
...
* Add stricter/better ESLint config
* Remove more unnecessary @returns
2016-09-03 20:45:23 +01:00
Schuyler Cebulskie
27652b94af
Make JSDocs follow general conventions ( #582 )
...
* Make JSDocs follow usual conventions
* Fix StringResolvable name
* Make function lowercase
2016-09-03 09:57:25 +01:00
Amish Shah
d249aa10cc
Add client.destroy();
2016-08-30 13:05:57 +01:00
Amish Shah
df456589ab
Fix requests getting locked up in queues
2016-08-22 19:15:08 +01:00
Amish Shah
97e16e6eed
Make SequentialRequestHandler private
2016-08-19 20:11:46 +01:00
Amish Shah
fb55b6dc60
Rebuild docs
2016-08-19 20:10:32 +01:00
Amish Shah
75ff9fb096
Comply to the new Rate Limit Headers hammerandchisel/discord-api-docs#108
2016-08-19 19:03:10 +01:00
Amish Shah
c2e3d2b8ca
Fix time differences (add 1 second)
2016-08-19 18:47:59 +01:00
Amish Shah
f012655e53
Add 429 handling back into Sequential Handler
2016-08-19 18:47:41 +01:00
Amish Shah
fd64fb0a82
Use Date headers to offset time differences to fix rate limiting
2016-08-19 18:28:47 +01:00
Amish Shah
dcba580d89
Implement Sequential Rate Limiting
2016-08-19 18:01:28 +01:00