Undici.eventSource
#2976
-
Is eventSource still experimental? Can we use this feature? |
Beta Was this translation helpful? Give feedback.
Answered by
Uzlopak
Mar 20, 2024
Replies: 1 comment 10 replies
-
You can use it, but be aware is still experimental and its subject to changes over the time, until it goes out of experimental |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The expectation that it is "not" production ready is wrong. I am the main developer for this implementation. I can assure you that I was very thorough in the implementation. It is developed up to the spec.
But, there can be reasons, why you would e.g. use the "eventsource" npm package. E.g. the eventsource npm package allows you set headers while instantiating the eventsource connection. Or set a specific proxy - something which is also possible with undici, but not done on eventsource level but iirc via setting a globaldispatcher.
Our EventSource implementation is now released for about 6-8 weeks. So we have not enough feedback to claim that it is battletested. But this will only be poss…