zxcv05 / hubbub

Rust library for creating discord self-bots
GNU General Public License v3.0
4 stars 1 forks source link

Rework websocket event queue #3

Open zxcv05 opened 1 week ago

zxcv05 commented 1 week ago

Currently how the entire websocket system works is as follows:

It's a bit more complicated than that but it's very over complicated. I'd rather it not be, for maintainability and readability

zxcv05 commented 1 week ago

It's important to note the reason why we have two threads is because reading from rx (rx.try_next()) blocks