polyphony-chat / chorus

A rust library for interacting with multiple Spacebar-compatible Instances at once.
https://crates.io/crates/chorus
Mozilla Public License 2.0
16 stars 7 forks source link

Reuse gateway backends, don't duplicate them for voice gateway #493

Closed kozabrada123 closed 2 months ago

kozabrada123 commented 2 months ago

When I first implemented the voice gateway, I (pretty foolishly) just copy-pasted the code for the regular gateway backends, with some type changes. Now I've thought of a pretty easy to way to have the websocket backends implemented in just one place, so they aren't duplicated. (also because there is potentially another type of gateway to implement, and maintaining the same code three times would be a pain)