Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose a json API to get current standings or control who I'm spectating #18

Open
MiniGod opened this issue Jul 12, 2016 · 3 comments
Open

Comments

@MiniGod
Copy link
Collaborator

MiniGod commented Jul 12, 2016

Expose an API to get public data about the ongoing race. Could be loaded on websites to show live stats. Maybe even support EventStream (SSE)?

Public data like current standings, map list, player list, chat, could be easy as it's read-only and public.

However, we could expand from this and let admins control ManiaJS -- or even the server it self through ManiaJS -- using the same API.

It could also be great for streamers to be able to for example have the player list in their browser and switch the players there. I'm no streamer so I don't know if that would work well.

@tomvlk
Copy link
Member

tomvlk commented Jul 12, 2016

This one is gold, needs to be in there for sure!

Maybe we can add this to the core itself with enable/disable to make sure we have full power.
Or maybe even make this work in a separate process. (with cluster) so it won't directly be exposed to the performance (keep in mind for any flooding/ddos attacks, it can crash the entire server..).

@MiniGod
Copy link
Collaborator Author

MiniGod commented Jul 12, 2016

I was thinking about the flooding and dos attacks as well, but I think we shouldn't put too much effort into that apart from warning people that it is a "expert" feature and should be put behind a proxy of some sort.

@tomvlk
Copy link
Member

tomvlk commented Jul 12, 2016

Yes, behind reverse proxy will be better, but best is to use it internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants