solid / notifications

Solid Notifications Technical Reports
https://solid.github.io/notifications/protocol
MIT License
11 stars 7 forks source link

Re-connection mechanic #199

Open CxRes opened 2 weeks ago

CxRes commented 2 weeks ago

We need a re-connection mechanic when subscription is dropped to ensure that no notifications were lost in the interim.

A possible candidate is re-using "Last-Event-ID" mechanism from SSE/Eventsource. The state of the notification can be sent back using the Last-Event-ID header upon reconnection, so the resource sender can take appropriate action: Send missing notifications, inform you to re-fetch the resource etc.