SpaceManiac / discord-rs

Rust library for the Discord chat client API
MIT License
385 stars 94 forks source link

[WIP] async gateway connections #147

Closed tinaun closed 4 years ago

tinaun commented 6 years ago

continued from #143

bdonlan commented 6 years ago

FYI - I've been working on an async implementation of the Connection side of things, so it might be good to combine efforts. Currently I have it connecting, need to verify it stays connected over reconnections and need to add back in all the hooks for voice support and etc

bdonlan commented 6 years ago

I've posted my WIP over at https://github.com/SpaceManiac/discord-rs/pull/148

jD91mZM2 commented 6 years ago

Should I close my pull request so we'll continue here?

bdonlan commented 6 years ago

They're somewhat independent so far in that changing out the http library for the request-response bits won't impact the async side too much. Doing the dependency update as a separate PR would therefore be worthwhile I think.

tinaun commented 6 years ago

im getting somewhere with this

jD91mZM2 commented 6 years ago

Awesome! When do you plan on rebasing on top of the latest master? Leave it until you're done?

tinaun commented 6 years ago

yeah. im working on voice stuff now. its tricky! i may end up rewriting a lot more than just the network stuff.

current todo list:

jD91mZM2 commented 6 years ago

I adore your enthusiasm for the project :)

how should errors in channel sending be handled?

You mean like Sender.send? That should probably just be unwrapped in the most cases, since it can only fail if the receiver is dropped, which it shouldn't be before the sender is.

SpaceManiac commented 4 years ago

Closing due to long-term WIP status and severe merge conflicts.