HubConnectionBuilder class

A builder for configuring {@link @microsoft/signalr.HubConnection} instances.

Constructors

HubConnectionBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() HubConnection
Creates a HubConnection from the configuration options specified in this builder.
configureLogging(Logger logger) HubConnectionBuilder
Configures console logging for the HubConnection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withAutomaticReconnect({IRetryPolicy? reconnectPolicy, List<int>? retryDelays}) HubConnectionBuilder
withHubProtocol(IHubProtocol protocol) HubConnectionBuilder
Configures the HubConnection to use the specified Hub Protocol.
withUrl(String url, {HttpConnectionOptions? options, HttpTransportType? transportType}) HubConnectionBuilder
Configures the {@link @microsoft/signalr.HubConnection} to use HTTP-based transports to connect to the specified URL.

Operators

operator ==(Object other) bool
The equality operator.
inherited