signalr_client library

Classes

AvailableTransport
DartIOHttpClient
HttpConnection
HttpConnectionOptions
Options provided to the 'withUrl' method on HubConnectionBuilder to configure options for the HTTP-based transports.
HubConnection
Represents a connection to a SignalR Hub
HubConnectionBuilder
A builder for configuring {@link @aspnet/signalr.HubConnection} instances.
ITransport
An abstraction over the behavior of transports. This is designed to support the framework and not intended for use by applications.
NegotiateResponse
SignalRHttpClient
Abstraction over an HTTP client. [...]
SignalRHttpRequest
Represents an HTTP request.
SignalRHttpResponse
Represents an HTTP response.

Constants

DEFAULT_PING_INTERVAL_IN_MS → const int
15 * 1000
DEFAULT_TIMEOUT_IN_MS → const int
30 * 1000

Functions

getTransferFormatFromString(String value) TransferFormat
httpTransportTypeFromString(String value) HttpTransportType

Enums

ConnectionState
HttpTransportType
Specifies a specific HTTP transport type.
HubConnectionState
Describes the current state of the {@link HubConnection} to the server.
TransferFormat
Specifies the transfer format for a connection.

Typedefs

AccessTokenFactory = Future<String> Function()
ClosedCallback = void Function(Exception error)
InvocationEventCallback = void Function(HubMessageBase invocationEvent, Exception error)
MethodInvacationFunc = void Function(List<Object> arguments)
OnClose = void Function(Exception error)
OnReceive = void Function(Object data)
Data received call back. data: the content. Either a string (json) or Uint8List (binary)
ReconnectedCallback = void Function(String connectionId)
ReconnectingCallback = void Function(Exception error)