ngx-sse-client
ngx-sse-client copied to clipboard
Error at the end of stream
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
I am putting in a fix for this particular issue. though error handling in general is not ideally setup.
A server timeout will still send the empty event.