HttpConnectionOptions class

Options provided to the 'withUrl' method on HubConnectionBuilder to configure options for the HTTP-based transports.


HttpConnectionOptions({SignalRHttpClient httpClient, Object transport, Logger logger, AccessTokenFactory accessTokenFactory, bool logMessageContent: false bool skipNegotiation: false })


accessTokenFactory AccessTokenFactory
A function that provides an access token required for HTTP Bearer authentication.
read / write
httpClient SignalRHttpClient
An SignalRHttpClient that will be used to make HTTP requests.
read / write
logger Logger
Configures the logger used for logging. [...]
read / write
logMessageContent ↔ bool
A boolean indicating if message content should be logged. [...]
read / write
skipNegotiation ↔ bool
A boolean indicating if negotiation should be skipped. [...]
read / write
transport ↔ Object
An HttpTransportType or ITransport value specifying the transport to use for the connection If transport is null and the server supports all transport protocols than HttpTransportType.WebSockets is used.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.