Open tmaxmax opened 1 year ago
Hey, I was searching around for only an SSE events parser - encoder/decoder. This was the only library I could find that isn't ancient - thanks for your work!
I'm using an openapi spec which generates ready to use API calls from client side - which is why I am not using the client in go-sse (it would take time to make it play well with openAPI generated code). However, I'm interested in using the code inside internal/parser
. I could also help you with exposing it if you had a few ideas in mind.
I saw that the code in https://github.com/donovanhide/eventsource/blob/master/decoder.go, was much simpler and shorter than what you have written up - is there any advantage that I'm missing to your implementation? Please do let me know!
Thanks!
Here's what's planned for v1, listed by priority:
Message.Writer
, which returns anio.Writer
that can be used to writedata
fields to the event. (#9)~ subsequently removed (#11), it is superfluousAppendData
with a simpleData string
fieldFiniteReplayProvider
(#23)ValidReplayProvider
as a consequence of the changes made by the other PROnSession
andMessageWriter
– could we do without them and use standardnet/http
types instead?go.work
(#26)nats-io
or other) (see also #13, #19)sse
module? (the code ininternal/parser
– is there demand for this?)go-sse
, external provider implementations if any toREADME