MCDash
MCDash copied to clipboard
Upgrade: Connection dashboard server with Server-Site Events
I checked the Network section from the web page and I saw some constant connections:
- /api/players/online
- /api/ping
- /api/stats/
I propose the use of the Server-Site Events in order to send messages of "success" connections and other needed info. I leave here the MDN documentation: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events
I've never worked with SSE before, so I may need some time to get familiar with it. But if it helps reduce traffic, I think it's worth it. Also, thanks for all the feedback you have for this project, I really appreciate it! :)