walfie / gbf-raidfinder

Granblue Raid Finder (Archived: Granblue no longer has raid tweets)
https://gbf-raidfinder.aikats.us
MIT License
206 stars 106 forks source link

Fix missing backfill tweets #92

Closed walfie closed 8 years ago

walfie commented 8 years ago

Adds a short delay between initial websocket messages sent by the client.

By default, ActorFlow has a small 16-element buffer for outgoing websocket messages, and will drop messages. Adding a short delay between the initial websocket request messages gives the server some more time to send the backfill raid tweets.

An alternative is to increase the buffer size, but it's not recommended since it's a constant value per websocket connection and I'm not going to increase server-side memory usage for this.

Another alternative is to batch raid tweet messages, which is probably the better idea, but it would be a significant change.

Fixes #93