signalr_pure library

Classes

AbortSignal
Represents a signal that can be monitored to determine if a request has been aborted.
CancelInvocationMessage
A hub message sent to request that a streaming invocation be canceled.
CloseMessage
A hub message indicating that the sender is closing the connection.
CompletionMessage
A hub message representing the result of an invocation.
ConsoleLogger
HttpClient
Abstraction over an HTTP client.
HttpConnectionOptions
HttpRequest
Represents an HTTP request.
HttpResponse
Represents an HTTP response.
HttpTransportType
Specifies a specific HTTP transport type.
HubConnection
Represents a connection to a Signalr Hub.
HubConnectionBuilder
A builder for configuring HubConnection instances.
HubConnectionState
Describes the current state of the HubConnection to the server.
HubInvocationMessage
Defines properties common to all Hub messages relating to a specific invocation.
HubMessage
Defines properties common to all Hub messages.
HubProtocol
A protocol abstraction for communicating with Signalr Hubs.
InvocationMessage
A hub message representing a non-streaming invocation.
JsonHubProtocol
Implements the JSON Hub Protocol.
Logger
An abstraction that provides a sink for diagnostic messages.
MessageType
Defines the type of a Hub Message.
NullLogger
A logger that does nothing when log messages are sent to it.
PingMessage
A hub message indicating that the sender is still active.
RetryContext
RetryPolicy
An abstraction that controls when the client attempts to reconnect and how many times it does so.
Stream<T>
Defines the result of a streaming hub method.
StreamInvocationMessage
A hub message representing a streaming invocation.
StreamItemMessage
A hub message representing a single item produced as part of a result stream.
StreamSubscriber<T>
Defines the expected type for a receiver of results streamed by the server.
Subject<T>
Stream implementation to stream items to the server.
Subscription<T>
An interface that allows an StreamSubscriber to be disconnected from a stream.
TransferFormat
Specifies the transfer format for a connection.
Transport
An abstraction over the behavior of transports. This is designed to support the framework and not intended for use by applications.

Enums

LogLevel
Indicates the severity of a log message.

Typedefs

AccessTokenFactory = Future<String> Function()
EventSourceConstructor = EventSource Function(String url, Map<String, String>? headers, bool? withCredentials)
WebSocketConstructor = WebSocket Function(String url, List<String>? protocols, Map<String, String>? headers)

Exceptions / Errors

AbortException
Exception thrown when an action is aborted.
HttpException
Exception thrown when an HTTP request fails.
TimeoutException
Exception thrown when a timeout elapses.