Closed bradgessler closed 8 years ago
I believe @steel looked into SSE back in the early days of Firehose. Perhaps he has some comments about future support. I have heard there are JavaScript-only polyfills for SSE.
I am a little bit concerned using an HTTP header in our long polling that is already reserved for SSE. I understand that long polling and SSE are mutually exclusive so there isn't a direct opportunity for a conflict. However, I just wanted to bring it up as a point to consider.
Good point. We could go with X-Firehose-Last-Event-ID
for the HTTP Long Polling transport.
I'm closing this issue because I think Last-Event-ID
is less clear than Last-Event-Sequence
for purposes of Firehose, especially since we've implemented dropped message support in https://github.com/firehoseio/firehose/issues/52. The term sequence
makes it more apparent that a dropped message is something that's not contiguous in the sequence. An event id
is much less clear on that front.
According to http://caniuse.com/eventsource more browsers support Server-Sent Events to warrant their consideration as a transport for Firehose.
Change the
Last-Message-Sequence
client header toLast-Event-ID
to support more like semantics in anticipation of an SSE Firehose transport. Also change all instances of "last message sequence" variable names in JS and Ruby to "last event id".We should release this in two pieces:
Last-Message-Sequence
header.Last-Message-Sequence
and only has aLast-Event-ID
header.