G5API icon indicating copy to clipboard operation
G5API copied to clipboard

Real Time Data Implementation

Open PhlexPlexico opened this issue 3 years ago • 2 comments

Closes #185.

This feature will contain a new subset of routes with /stream appended to the new routes. This will allow users to use Server Sent Events and hook over a simple HTTP to get updates whenever the game state is updated. This can be included on things like player stats, veto updates, match score updates, etc.

This is currently a WIP and will be brought in when 1.7.0 is ready to be released.

PhlexPlexico avatar Aug 29 '22 21:08 PhlexPlexico

I did not go through all files but there are more occasions of the emitter being declared more than once

Thanks! I've decided to go with an extends class to give the ability to further break out the class as needed. This is also a very rough draft and is most likely to change significantly before I even mark this as "ready for review", just figured it's easier to track work with multiple commits instead of all done at once :)

PhlexPlexico avatar Aug 29 '22 22:08 PhlexPlexico

Sounds and also looks like a really elegant solution!

kdev avatar Aug 30 '22 11:08 kdev