HttpConnectionOptions class

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

Constructors

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

Properties

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

Methods

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

Operators

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