Fix for #6 reconnect issue.
This commit is contained in:
@@ -142,7 +142,7 @@ async function backoffWSConnection(identifier, connectionConfig) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
call.retryIf(function(err) {
|
call.retryIf(function(err) {
|
||||||
return err.error.code == 'ECONNREFUSED';
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
call.setStrategy(new backoff.ExponentialStrategy({
|
call.setStrategy(new backoff.ExponentialStrategy({
|
||||||
@@ -180,6 +180,7 @@ async function reconnectWebsocket(payload) {
|
|||||||
host: payload.host,
|
host: payload.host,
|
||||||
port: payload.port,
|
port: payload.port,
|
||||||
token: payload.token,
|
token: payload.token,
|
||||||
|
useTLS: payload.useTLS,
|
||||||
ignoreCert: payload.ignoreCert
|
ignoreCert: payload.ignoreCert
|
||||||
};
|
};
|
||||||
for (const connection in this.connections) {
|
for (const connection in this.connections) {
|
||||||
|
|||||||
Reference in New Issue
Block a user