docs: function shouldReconnect(err) {
    // exclude all programming errors
    return (!(err instanceof TypeError) &&
            !(err instanceof InvalidArgumentError) &&
            !(err instanceof NotPermittedError) &&
            !(err instanceof ReplacedError) &&
            !(err instanceof StoppedError) &&
            !(err instanceof SubscribedError) &&
            !(err instanceof UnsubscribedError)
    );
  }