signalr library

Classes

AbortController
AbortSignal
Represents a signal that can be monitored to determine if a request has been aborted.
Arg
AvailableTransport
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.
Connection
ConnectionState
ConsoleLogger
DefaultHttpClient
Default implementation of HttpClient.
DefaultReconnectPolicy
HandshakeProtocol
HandshakeRequestMessage
HandshakeResponseMessage
HttpClient
Abstraction over an HTTP client. [...]
HttpConnection
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.
LongPollingTransport
MessageType
Defines the type of a Hub Message.
NegotiateResponse
NullLogger
A logger that does nothing when log messages are sent to it.
PingMessage
A hub message indicating that the sender is still active.
Platform
RetryContext
RetryPolicy
An abstraction that controls when the client attempts to reconnect and how many times it does so.
ServerSentEventsTransport
StreamInvocationMessage
A hub message representing a streaming invocation.
StreamItemMessage
A hub message representing a single item produced as part of a result stream.
StreamResult<T>
Defines the result of a streaming hub method. [...]
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.
SubjectSubscription<T>
Subscription<T>
An interface that allows an StreamSubscriber to be disconnected from a stream. [...]
TextMessageFormat
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.
TransportSendQueue
WebSocketTransport

Constants

DEFAULT_PING_INTERVAL_IN_MS → const int
15 * 1000
DEFAULT_RETRY_DELAYS_IN_MILLISECONDS → const List<int>
[0, 2000, 10000, 30000, null]
DEFAULT_TIMEOUT_IN_MS → const int
30 * 1000
MAX_REDIRECTS → const int
100
VERSION → const String
The version of the Signalr client.
'5.0.1'

Functions

constructUserAgent(String version, String os, String runtime, String runtimeVersion) String
createLogger(Object logger) Logger
getDataDetail(Object data, bool includeContent) String
getUserAgentHeader() MapEntry<String, String>
sendMessageAsync(Logger logger, String transportName, HttpClient httpClient, String url, Object accessTokenFactory(), Object content, bool logMessageContent, bool withCredentials, Map<String, String> defaultHeaders) Future<void>

Enums

LogLevel
Indicates the severity of a log message. [...]

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.