Sdílet prostřednictvím


@microsoft/signalr package

Classes

DefaultHttpClient

Default implementation of HttpClient.

AbortError

Error thrown when an action is aborted.

HttpError

Error thrown when an HTTP request fails.

TimeoutError

Error thrown when a timeout elapses.

FetchHttpClient
HeaderNames
HttpClient

Abstraction over an HTTP client. This class provides an abstraction over an HTTP client so that a different implementation can be provided on different platforms.

HttpResponse

Represents an HTTP response.

HubConnection

Represents a connection to a SignalR Hub.

HubConnectionBuilder

A builder for configuring HubConnection instances.

JsonHubProtocol

Implements the JSON Hub Protocol.

NullLogger

A logger that does nothing when log messages are sent to it.

Subject

Stream implementation to stream items to the server.

XhrHttpClient

Interfaces

AbortSignal

Represents a signal that can be monitored to determine if a request has been aborted.

HttpRequest

Represents an HTTP request.

IHttpConnectionOptions

Options provided to the 'withUrl' method on HubConnectionBuilder to configure options for the HTTP-based transports.

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. If error is defined, the sender is closing the connection due to an error.

CompletionMessage

A hub message representing the result of an invocation.

HubInvocationMessage

Defines properties common to all Hub messages relating to a specific invocation.

HubMessageBase

Defines properties common to all Hub messages.

IHubProtocol

A protocol abstraction for communicating with SignalR Hubs.

InvocationMessage

A hub message representing a non-streaming invocation.

MessageHeaders

Defines a dictionary of string keys and string values representing headers attached to a Hub message.

PingMessage

A hub message indicating that the sender is still active.

StreamInvocationMessage

A hub message representing a streaming invocation.

StreamItemMessage

A hub message representing a single item produced as part of a result stream.

ILogger

An abstraction that provides a sink for diagnostic messages.

IRetryPolicy

An abstraction that controls when the client attempts to reconnect and how many times it does so.

RetryContext
ITransport

An abstraction over the behavior of transports. This is designed to support the framework and not intended for use by applications.

IStreamResult

Defines the result of a streaming hub method.

IStreamSubscriber

Defines the expected type for a receiver of results streamed by the server.

ISubscription

An interface that allows an IStreamSubscriber to be disconnected from a stream.

Type Aliases

HubMessage

Union type of all known Hub messages.

Enums

HubConnectionState

Describes the current state of the HubConnection to the server.

MessageType

Defines the type of a Hub Message.

LogLevel

Indicates the severity of a log message. Log Levels are ordered in increasing severity. So Debug is more severe than Trace, etc.

HttpTransportType

Specifies a specific HTTP transport type.

TransferFormat

Specifies the transfer format for a connection.