HubConnectionBuilder class abstract

A builder for configuring HubConnection instances.

Constructors

HubConnectionBuilder()
factory

Properties

$httpConnectionOptions HttpConnectionOptions?
no setter
$logger Logger?
no setter
$protocol HubProtocol?
no setter
$reconnectPolicy RetryPolicy?
no setter
$url String?
no setter
hashCode int
The hash code for this object.
no setterinherited
httpConnectionOptions HttpConnectionOptions
An options object used to configure the connection.
no getter
logger Logger
An object implementing the Logger interface, which will be used to write all log messages.
no getter
logLevel LogLevel
The minimum level of messages to log. Anything at this level, or a more severe level, will be logged.
no getter
protocol HubProtocol
The HubProtocol implementation to use.
no getter
reconnect bool
Configures the HubConnection to automatically attempt to reconnect if the connection is lost. By default, the client will wait 0, 2, 10 and 30 seconds respectively before trying up to 4 reconnect attempts.
no getter
reconnectDelays List<int>
An array containing the delays in milliseconds before trying each reconnect attempt. The length of the array represents how many failed reconnect attempts it takes before the client will stop attempting to reconnect.
no getter
reconnectPolicy RetryPolicy
An RetryPolicy that controls the timing and number of reconnect attempts.
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transportType HttpTransportType
The specific transport to use.
no getter
url String
The URL the connection will use.
no getter

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

Operators

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