You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have reconnect ability built into the library somewhere.
This would remove the need to have
xapi.on('close',()=>{}).on('error',(error)=>{});
with reconnect logic in client code.
Today, to have reconnect ability, you will have to have event listeners on close and error, which will create a new xapi object, and re-register all feedbacks.
The text was updated successfully, but these errors were encountered:
I probably should have answered this some time ago..Using the Error Event is good practice from my usage..but to keep a connection alive use the following:
Ultimately, this module uses the SSH2 module here: https://github.com/mscdex/ssh2, some of the properties and events for SSH2 are good to know for this module..some methods and properties may not work..your mileage of incorporating these may vary...
It would be nice to have reconnect ability built into the library somewhere.
This would remove the need to have
with reconnect logic in client code.
Today, to have reconnect ability, you will have to have event listeners on
close
anderror
, which will create a newxapi
object, and re-register all feedbacks.The text was updated successfully, but these errors were encountered: