create static method

HubConnection create(
  1. IConnection connection,
  2. Logger? logger,
  3. IHubProtocol protocol, {
  4. IRetryPolicy? reconnectPolicy,
})

Implementation

static HubConnection create(
    IConnection connection, Logger? logger, IHubProtocol protocol,
    {IRetryPolicy? reconnectPolicy}) {
  return HubConnection(connection, logger, protocol,
      reconnectPolicy: reconnectPolicy);
}