Optional connectOptional keepToggle keep-alive
Optional noToggle Nagle's algorithm
Optional reconnectWhen the socket closes unexpectedly (without calling .quit()/.disconnect()), the client uses reconnectStrategy to decide what to do. The following values are supported:
false -> do not reconnect, close the client and flush the command queue.number -> wait for X milliseconds before reconnecting.(retries: number, cause: Error) => false | number | Error -> number is the same as configuring a number directly, Error is the same as false, but with a custom error.
Defaults to retries => Math.min(retries * 50, 500)Generated using TypeDoc
Connection Timeout (in milliseconds)