HubConnectionBuilder class

A builder for configuring HubConnection instances.

Constructors

HubConnectionBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
reconnectPolicy RetryPolicy?
getter/setter pair
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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withAutomaticReconnect([dynamic retryDelaysOrReconnectPolicy]) HubConnectionBuilder
Configures the HubConnection to automatically attempt to reconnect if the connection is lost.
withHubProtocol(HubProtocol protocol) HubConnectionBuilder
Configures the HubConnection to use the specified Hub Protocol.
withUrl(String url, [dynamic transportTypeOrOptions]) HubConnectionBuilder
Configures the HubConnection to use HTTP-based transports to connect to the specified URL.

Operators

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