Skip to content

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

Open

Description

@MiniGod

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.

Activity

  1. tomvlk commented on Jul 12, 2016

    @tomvlk
    Member

    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..).

  2. MiniGod commented on Jul 12, 2016

    @MiniGod
    CollaboratorAuthor

    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.

  3. tomvlk commented on Jul 12, 2016

    @tomvlk
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions