couch-kit
    Preparing search index...

    Function shouldReconnect

    • Decide whether the client should attempt an automatic reconnect.

      Returns false for intentional closes, for non-recoverable server close codes (1008 policy / 1011 internal error), or once the attempt budget is exhausted; otherwise true.

      Parameters

      Returns boolean