Closed eschava closed 2 years ago
I'm looking for the same kind of thing. Any update about it ?
I've just published a new version, 2.4.0, which should help. The Pushbullet stream sends a nop
message every 30 seconds. If that message isn't seen then the stream will reconnect.
I use pushbullet stream connection to listen for received messages in Node-Red "pushbullet in" node
When server disconnection occurs, this is not handled by client. Netstat shows
but incoming messages are ignored. As far as I know Node-Red has code to reconnect client after disconnection happens, but looks like it is not notified about disconnection currently.
Experimenting, I've changed the line
self.client = new WebSocketClient();
toself.client = new WebSocketClient({keepalive: true, keepaliveInterval: 60000});
Now reconnection is handled correctly, but netstat shows ugly number of old connections after several reconnects:
Could be there an option to always have only one active connection even after network reconnection happens?