bartbutenaers / node-red-contrib-sse-client

Node-Red node to receive Server Sent Events
Apache License 2.0
16 stars 6 forks source link

Raise an error if SSE connection fails. #8

Open chainhead opened 2 months ago

chainhead commented 2 months ago

Suppose the HTTP SSE is not available. I want a connection error to be raised so that it in can be handled by a Catch node. How can this be achieved?

bartbutenaers commented 2 months ago

Hi @chainhead,

Sorry for the delay! I am running low on free time...

I have added a fix that should make the errors catchable, so you should now be able to catch errors with a Catch node.

However I don't use this node myself. Just created it at the time being to do someone a favor. Therefore it would be nice if you could install my fix from Github and test it, before I publish it on NPM.

When you have Git installed, you should be able to install this node from this Github repo directly, by executing following command within your .node-red folder:

npm install bartbutenaers/node-red-contrib-sse-client

Please me know if it fits your needs, and then I will install it on NPM. Thanks!

chainhead commented 2 months ago

Seeing this message only now, @bartbutenaers Hopefully, over this weekend.