The reconnectStrategy
is defined as
reconnectStrategy?: false | number | ReconnectStrategyFunction;
Setting it to false
will disable the reconnects, another option would be to write your own ReconnectStrategyFunction
.
There's a whole section about it in the client-configuration.md