Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom headers client #695

Open
mrbluecoat opened this issue Sep 30, 2024 · 0 comments
Open

Custom headers client #695

mrbluecoat opened this issue Sep 30, 2024 · 0 comments

Comments

@mrbluecoat
Copy link

Unfortunately, browsers don't support setting this header for an EventSource object, so by default the last message id is set either from the "Last-Event-Id" header or the last_event_id url query string argument.
This behavior can be configured via the nchan_subscriber_last_message_id config.
A message's content-type will not be received by an EventSource subscriber, as the protocol makes no provisions for this metadata

Perhaps include an example with https://github.com/mpetazzoni/sse.js that does support custom headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant