signalr_client library
Classes
- AvailableTransport
- 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 @microsoft/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.
- TransportSendQueue
- WebSupportingHttpClient
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.
Constants
- DEFAULT_PING_INTERVAL_IN_MS → const int
- DEFAULT_TIMEOUT_IN_MS → const int
Functions
-
getTransferFormatFromString(
String? value) → TransferFormat -
httpTransportTypeFromString(
String? value) → HttpTransportType
Typedefs
-
AccessTokenFactory
= Future<
String> Function() - ClosedCallback = void Function({Exception? error})
- InvocationEventCallback = void Function(HubMessageBase? invocationEvent, Exception? error)
-
MethodInvocationFunc
= void Function(List<
Object?> ? arguments) - OnClose = void Function({Exception? error})
- OnHttpClientCreateCallback = void Function(Client httpClient)
- 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})