signalr_client library

Classes

AvailableTransport
ConsoleLogger
A Logger that print the message to the debug console.
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.
ILogger
An abstraction that provides a sink for diagnostic messages.
ITransport
An abstraction over the behavior of transports. This is designed to support the framework and not intended for use by applications.
NegotiateResponse
NullLogger
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.
LogLevel
These values are designed to match the ASP.NET Log Levels since that's the pattern we're emulating here. [...]
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)