Add a Server-Sent Event endpoint #3

Closed
opened 2025-09-28 18:18:08 +00:00 by ian · 2 comments
Owner

For clients that would like to be pushed data, support Server-Sent Events.

See e.g. https://medium.com/@tdenton8772/streaming-api-design-using-python-and-javascript-1b0ce8adb703

This involves some design effort e.g. how to we trigger push events to waiting clients when the spot list gets added to? Do we support filters in this endpoint, and if so how do we remember what clients we have attached and what query parameters they used?

Once we add support for this, we should also update the built-in front-end to use it.

For clients that would like to be pushed data, support Server-Sent Events. See e.g. https://medium.com/@tdenton8772/streaming-api-design-using-python-and-javascript-1b0ce8adb703 This involves some design effort e.g. how to we trigger push events to waiting clients when the spot list gets added to? Do we support filters in this endpoint, and if so how do we remember what clients we have attached and what query parameters they used? Once we add support for this, we should also update the built-in front-end to use it.
ian referenced this issue from a commit 2025-12-22 12:04:39 +00:00
ian referenced this issue from a commit 2025-12-22 12:11:29 +00:00
ian referenced this issue from a commit 2025-12-22 12:20:36 +00:00
ian referenced this issue from a commit 2025-12-22 13:02:14 +00:00
ian self-assigned this 2025-12-22 14:58:41 +00:00
ian added this to the 1.1 milestone 2025-12-22 14:58:46 +00:00
ian referenced this issue from a commit 2025-12-22 15:47:51 +00:00
Author
Owner

TODO:

  • Is something stopping spots coming into the main server?
  • Find a way to improve ordering when new spots arrive? They should not necessarily go at the top due to the way we are only polling e.g. POTA every 2 minutes but Cluster spots come in live.
  • Run/Stop button
TODO: - [x] Is something stopping spots coming into the main server? - [x] Find a way to improve ordering when new spots arrive? They should not necessarily go at the top due to the way we are only polling e.g. POTA every 2 minutes but Cluster spots come in live. - [x] Run/Stop button
ian referenced this issue from a commit 2025-12-22 16:35:33 +00:00
ian referenced this issue from a commit 2025-12-23 21:58:36 +00:00
ian referenced this issue from a commit 2025-12-24 08:53:47 +00:00
Author
Owner

Tentatively want to say this is done... Now to push it live and see what breaks

Tentatively want to say this is done... Now to push it live and see what breaks
ian closed this issue 2025-12-24 08:57:52 +00:00
ian referenced this issue from a commit 2025-12-24 09:44:58 +00:00
ian referenced this issue from a commit 2025-12-24 09:47:31 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ian/spothole#3
No description provided.