MCDash icon indicating copy to clipboard operation
MCDash copied to clipboard

Upgrade: Connection dashboard server with Server-Site Events

Open marcjoancr opened this issue 2 years ago • 1 comments

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

marcjoancr avatar Aug 01 '23 21:08 marcjoancr

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! :)

gnmyt avatar Aug 17 '23 17:08 gnmyt