Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sharding support #166

Merged
merged 1 commit into from
Apr 22, 2016
Merged

Add sharding support #166

merged 1 commit into from
Apr 22, 2016

Conversation

b1naryth1ef
Copy link
Contributor

Do not merge this until discord/discord-api-docs#17 is ready

This PR adds support for Discords new builtin sharding implementation, which allows users to segment guilds across multiple websocket connections.

@bwmarrin bwmarrin added this to the v1.0.0 milestone Apr 13, 2016
@bwmarrin bwmarrin added the feature Feature implementation label Apr 13, 2016
@b1naryth1ef
Copy link
Contributor Author

This can be merged into develop now.

Properties: handshakeProperties{runtime.GOOS, "Discordgo v" + VERSION, "", "", ""},
LargeThreshold: 250,
Compress: s.Compress,
Shard: [2]int{s.ShardID, s.NumShards},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine to send [0,0] normally?

This implements the upcoming change (see discord/discord-api-docs#17)
to add guild-sharding support directly in the Discord Gateways.
@iopred
Copy link
Collaborator

iopred commented Apr 22, 2016

Merge time?

@bwmarrin
Copy link
Owner

Oh I missed binzy's comment I guess :)

@bwmarrin bwmarrin modified the milestones: v0.13.0, v1.0.0 Apr 22, 2016
@bwmarrin bwmarrin merged commit 7bd2bb1 into bwmarrin:develop Apr 22, 2016
@b1naryth1ef b1naryth1ef deleted the feature/sharding branch June 13, 2016 22:32
alex-j-butler pushed a commit to alex-j-butler/discordgo that referenced this pull request Nov 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants