marcospds/ngx-sse-client

Error at the end of stream

Opened this issue · 4 comments

tkeer commented

Can you please let me know why does it throw an error when stream is completed.

And seems like nothing is being passed to errorEvent function, is it a bug? https://github.com/rubinhos/ngx-sse-client/blob/a5f60e6a240012df1a852852ab4674e50530f8a1/lib/projects/ngx-sse-client/src/lib/sse-client.service.ts#L121

Same issue for me when I do POST request.

Hey @tkeer and @aresot , sorry for my delay in answering. As I do remember, this is an EventSource behaviour. I just reproduced in the service. On the first version, this was a EventSource lookalike for Angular, maybe this isn't necessary anymore.

hi @rubinhos, any updates on it?

hi @rubinhos, any updates on it?

cc @marcospds