aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
Commit message (Collapse)AuthorAgeFilesLines
* Add info logging for close codes we cannot handle.Rapptz2017-02-241-0/+1
|
* Don't RESUME when given sharding related close codes.Rapptz2017-02-151-1/+1
|
* Add missing continue statement in gateway futures.Rapptz2017-02-081-0/+1
|
* Handle HEARTBEAT_ACKRapptz2017-02-081-2/+24
|
* Rewrite RESUME logic to be more in line with what is requested.Rapptz2017-02-081-12/+7
| | | | | | Apparently we should always try to RESUME first and if we get INVALIDATE_SESSION then we should IDENTIFY instead. This is the preferred way to do RESUMEs.
* Add compatibility shim for asyncio.Future creation.Rapptz2017-01-251-1/+1
| | | | Should provide better support for uvloop.
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Add AutoShardedClient.change_presence.Rapptz2017-01-081-16/+1
|
* Change the way shards are launched in AutoShardedClient.Rapptz2017-01-081-29/+0
|
* Implement AutoShardedClient for transparent sharding.Rapptz2017-01-071-23/+57
| | | | | This allows people to run their >2,500 guild bot in a single process without the headaches of IPC/RPC or much difficulty.
* Move message creation to a factory method inside ConnectionState.Rapptz2017-01-031-7/+5
|
* Absolute import some circular dependencies to appease Python 3.4.Rapptz2017-01-031-5/+8
|
* Rename Server to Guild everywhere.Rapptz2017-01-031-6/+6
|
* Discard null sequences in the gateway.Rapptz2016-12-161-4/+4
| | | | | This was forbidding the Discord gateway from allowing us to RESUME properly, causing an over-abundance of READY being called.
* Fix typo in change_presence validation messagekhazhyk2016-10-151-1/+1
|
* Add support for "Do Not Disturb" and "Invisible" statuses.Rapptz2016-09-261-6/+16
| | | | | This deprecates Client.change_status in favour of the newer and more correct Client.change_presence.
* Remove unused endpoints.py file.Rapptz2016-09-251-1/+1
|
* Fix gateway code to work with websockets 3.2.Rapptz2016-08-251-1/+2
|
* Ensure that keep alive threads are closed when a websocket closes.Rapptz2016-08-211-4/+5
| | | | | | | | | | The library worked with the assumption that whenever the recv call for the websocket would lead to a closure, the close method would be called to signal closure and as a result our close method would be called. This assumption turned out to be false as the websockets library would instead call an internal function named close_connection instead. So to solve our problem we need to override this function instead of close.
* Handle receiving HEARTBEAT opcode.Rapptz2016-07-301-0/+5
|
* Begin working on gateway v6 changes.Rapptz2016-07-131-1/+1
| | | | | The first batch of changes are related to channel types and group direct messages. Support these first so READY begins parsing.
* Ignore HEARTBEAT_ACK for now to disable the noisy logging.Rapptz2016-06-271-0/+3
|
* Guild Sharding supportcookie2016-06-261-0/+5
|
* Support for v5 Gateway.Rapptz2016-06-221-5/+32
|
* Attempt resume when we receive a 1001.Rapptz2016-06-161-1/+1
|
* Fix sed error involved in creation of voice websocket.Rapptz2016-06-121-1/+1
|
* Support more close codes for RESUME.Rapptz2016-06-121-1/+1
|
* Rewrite HTTP handling significantly.Rapptz2016-06-121-34/+4
| | | | | | | | | This should have a more uniform approach to rate limit handling. Instead of queueing every request, wait until we receive a 429 and then block the requesting bucket until we're done being rate limited. This should reduce the number of 429s done by the API significantly (about 66% avg). This also consistently checks for 502 retries across all requests.
* Actually read from the voice websocket & fix heartbeat.Jake2016-06-051-1/+1
| | | | | | This change makes it so that the buffer doesn't fill and the voice server drops the socket. Also, use correct interval for voice websocket heartbeat.
* Actually use v4 gateway and fixes thanks to Jake.Rapptz2016-06-021-5/+5
|
* Update voice client main ws references when reconnecting.Rapptz2016-06-011-0/+2
|
* Add RESUME support.Rapptz2016-06-011-9/+43
|
* Rename threading internal variable conflict.Rapptz2016-05-131-3/+3
|
* Force encoding of text retrieval functions to use utf-8.Rapptz2016-05-101-1/+1
| | | | Closes #207
* Add Game.type and Game.url attributes to change streaming status.Rapptz2016-05-061-1/+1
|
* Add a TimeoutError if VoiceClient.connect fails.Rapptz2016-05-061-1/+1
|
* Suppress ConnectionClosed on sending in the main websocket.Rapptz2016-05-061-2/+9
|
* Working multi-server voice support.Rapptz2016-05-011-40/+21
|
* Refactor voice websocket into gateway.pyRapptz2016-04-271-6/+184
|
* Begin working on gateway v4 support.Rapptz2016-04-271-0/+402
Bump websockets requirement to v3.1 Should be squashed...