diff options
| author | Rapptz <[email protected]> | 2017-08-08 21:12:04 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-08-08 21:12:04 -0400 |
| commit | de65f7309bc8f8c931f29dcd76ebd9e8b0ee547b (patch) | |
| tree | 31d5e4e151f6757c677aa854cfa70f644635df00 /discord/shard.py | |
| parent | Add DiscordWebSocket.latency to measure discord heartbeat latency. (diff) | |
| download | discord.py-de65f7309bc8f8c931f29dcd76ebd9e8b0ee547b.tar.xz discord.py-de65f7309bc8f8c931f29dcd76ebd9e8b0ee547b.zip | |
Add heartbeat_timeout to the Client options.
This setting configures how long before a timeout event is emitted
internally and disconnects the websocket. Since some users were
experiencing issues with the gateway not responding, this should help
mitigate the issue for those with poor PCs.
Diffstat (limited to 'discord/shard.py')
| -rw-r--r-- | discord/shard.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/shard.py b/discord/shard.py index 75fd661e..70b99ee6 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -204,6 +204,7 @@ class AutoShardedClient(Client): ws.gateway = gateway ws.shard_id = shard_id ws.shard_count = self.shard_count + ws._max_heartbeat_timeout = self._connection.heartbeat_timeout try: # OP HELLO |