connect method

Future<ConnectionResult> connect(
  1. ServerConfig server
)

FR-CONN-001~003, 010

Implementation

Future<ConnectionResult> connect(ServerConfig server) =>
    // Allow one durable-reconnect re-grant on the outer attempt; the retry
    // (with a fresh token) runs with allowReGrant:false so a persistently
    // bad server can't loop.
    _connect(server, allowReGrant: true);