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>
ClosedCallback(Exception error) → void
InvocationEventCallback(HubMessageBase invocationEvent, Exception error) → void
MethodInvacationFunc(List<Object> arguments) → void
OnClose(Exception error) → void
OnReceive(Object data) → void
Data received call back. data: the content. Either a string (json) or Uint8List (binary)