seedkit_feature_api_hub library
Classes
- 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.
Enums
- 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})
- 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})