WebSocketClient Class

Definition

Provides a client for connecting over WebSockets to a test server.

C#
public class WebSocketClient
Inheritance
WebSocketClient

Properties

ConfigureRequest

Gets or sets the handler used to configure the outgoing request to the WebSocket endpoint.

SubProtocols

Gets the list of WebSocket subprotocols that are established in the initial handshake.

Methods

ConnectAsync(Uri, CancellationToken)

Establishes a WebSocket connection to an endpoint.

Applies to

Proizvod Verzije
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0