Closed xtianus79 closed 2 years ago
This is an example of setting headers: https://github.com/EventSource/eventsource/blob/master/test/eventsource_test.js#L518-L523
You could use this for anything from authorization to Last-Event-ID
which can be used to tell the server how much historical information the client needs. A common scenario is when the client keeps a cache of events and wants to understand the "state of the world".
When you say this
Does that mean on open? where would that appear? Also, what would be a use case of this?