krvarma / SparkCore_Node-RED

Spark Core and Node-RED integration
13 stars 2 forks source link

subscribe stops working #2

Open Achronite opened 9 years ago

Achronite commented 9 years ago

I have a problem where the subscribe function stops working in node-red, probably due to my spark-core rebooting or losing internet access (not sure which). redeploying the flows in node-red restarts the subscription.

After doing some basic research, @dave on the spark forum (https://community.spark.io/t/spurious-subscribe-failures/7243/9) says: "it'll probably always be the case that network connections will disconnect eventually, so it's good to have your SSE stuff reconnect automatically, we have a few examples for that in SparkJS https://github.com/spark/sparkjs1"

Is there any chance the SSE reconnect can be added to your code?