launchdarkly / node-server-sdk

LaunchDarkly Server-side SDK for Node
Other
79 stars 65 forks source link

Does your eventsource library override the native node version? #262

Closed xtianus79 closed 1 year ago

xtianus79 commented 1 year ago

sorry I posted here but you can't use issues for that library that is forked.

In this article the question talks about using a body. When I read your library it seems as if I have full control over the native eventsource from node. The only option is "withcredentials". Am I thinking of this correctly?

I need to send information with my request. I'd like to do it in a post. Perhaps I am thinking of the wrong thing. Can you help explain this.

https://stackoverflow.com/questions/25099548/html-sse-request-body

eli-darkly commented 1 year ago

It's not totally clear to me what you're asking, so, a couple of clarifications:

  1. The library you're talking about is https://github.com/launchdarkly/js-eventsource ... right?
  2. When you say "full control over the native eventsource from Node", what do you mean by "the native eventsource"? The main reason that this library exists (which is the same reason that the original project we forked it from exists) is that there is no SSE/EventSource implementation built into Node. There is a native EventSource API in web browsers.
  3. Did you read the README.md file? There's some fairly detailed documentation in it, including this section which is specifically about configuring it to do a POST request.
github-actions[bot] commented 1 year ago

This issue is marked as stale because it has been open for 30 days without activity. Remove the stale label or comment, or this will be closed in 7 days.