AspNetWebSocket AspNetWebSocket AspNetWebSocket AspNetWebSocket Class

Definición

Representa una conexión dúplex completa en tiempo real entre un servidor web y un cliente en una aplicación ASP.NET.Represents a real-time full-duplex connection between a web server and a client in an ASP.NET application.

public ref class AspNetWebSocket sealed : System::Net::WebSockets::WebSocket
public sealed class AspNetWebSocket : System.Net.WebSockets.WebSocket
type AspNetWebSocket = class
    inherit WebSocket
Public NotInheritable Class AspNetWebSocket
Inherits WebSocket
Herencia
AspNetWebSocketAspNetWebSocketAspNetWebSocketAspNetWebSocket

Propiedades

CloseStatus CloseStatus CloseStatus CloseStatus

Obtiene un código de estado que indica por qué un objeto AspNetWebSocket se ha cerrado.Gets a status code that indicates why an AspNetWebSocket object was closed.

CloseStatusDescription CloseStatusDescription CloseStatusDescription CloseStatusDescription

Obtiene un mensaje de estado que explica por qué un objeto AspNetWebSocket se ha cerrado.Gets a status message that explains why an AspNetWebSocket object was closed.

State State State State

Obtiene un valor que indica el estado abierto o cerrado de un objeto AspNetWebSocket.Gets a value that indicates the open or closed state of an AspNetWebSocket object.

SubProtocol SubProtocol SubProtocol SubProtocol

Obtiene el nombre de un protocolo específico de la aplicación que un cliente remoto y un servidor pueden usar para intercambiar datos en una conexión de AspNetWebSocket.Gets the name of an application-specific protocol that a remote client and a server can use to exchange data over an AspNetWebSocket connection.

Métodos

Abort() Abort() Abort() Abort()

Cancela cualquier operación de E/S pendiente en el objeto de AspNetWebSocket y establece el estado del objeto de modo que no pueda usarse para iniciar operaciones de E/S adicionales.Cancels any pending I/O operations on the AspNetWebSocket object and sets the state of the object so that it cannot be used to start additional I/O operations.

CloseAsync(WebSocketCloseStatus, String, CancellationToken) CloseAsync(WebSocketCloseStatus, String, CancellationToken) CloseAsync(WebSocketCloseStatus, String, CancellationToken) CloseAsync(WebSocketCloseStatus, String, CancellationToken)

Envía un mensaje asincrónico a un cliente para cerrar la conexión.Sends an asynchronous message to a client to close the connection. Si el servidor inicia la solicitud para cerrar la conexión, el método espera a que el cliente confirme la solicitud antes de volver.If the server initiates the request to close the connection, the method waits for the client to acknowledge the request before it returns.

CloseOutputAsync(WebSocketCloseStatus, String, CancellationToken) CloseOutputAsync(WebSocketCloseStatus, String, CancellationToken) CloseOutputAsync(WebSocketCloseStatus, String, CancellationToken) CloseOutputAsync(WebSocketCloseStatus, String, CancellationToken)

Envía un mensaje asincrónico a un cliente para cerrar la conexión.Sends an asynchronous message to a client to close the connection. Si el servidor inicia la solicitud para cerrar la conexión, el método vuelve sin esperar una respuesta.If the server initiates the request to close the connection, the method returns without waiting for a response.

Dispose() Dispose() Dispose() Dispose()

Libera todos los recursos usados por un objeto AspNetWebSocket.Releases all resources used by an AspNetWebSocket object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
ReceiveAsync(ArraySegment<Byte>, CancellationToken) ReceiveAsync(ArraySegment<Byte>, CancellationToken) ReceiveAsync(ArraySegment<Byte>, CancellationToken) ReceiveAsync(ArraySegment<Byte>, CancellationToken)

Recibe un único fragmento de mensaje de un cliente remoto.Receives a single message fragment from a remote client.

ReceiveAsync(Memory<Byte>, CancellationToken) ReceiveAsync(Memory<Byte>, CancellationToken) ReceiveAsync(Memory<Byte>, CancellationToken) ReceiveAsync(Memory<Byte>, CancellationToken) Inherited from WebSocket
SendAsync(ArraySegment<Byte>, WebSocketMessageType, Boolean, CancellationToken) SendAsync(ArraySegment<Byte>, WebSocketMessageType, Boolean, CancellationToken) SendAsync(ArraySegment<Byte>, WebSocketMessageType, Boolean, CancellationToken) SendAsync(ArraySegment<Byte>, WebSocketMessageType, Boolean, CancellationToken)

Envía un único fragmento de mensaje a un cliente remoto.Sends a single message fragment to a remote client.

SendAsync(ReadOnlyMemory<Byte>, WebSocketMessageType, Boolean, CancellationToken) SendAsync(ReadOnlyMemory<Byte>, WebSocketMessageType, Boolean, CancellationToken) SendAsync(ReadOnlyMemory<Byte>, WebSocketMessageType, Boolean, CancellationToken) SendAsync(ReadOnlyMemory<Byte>, WebSocketMessageType, Boolean, CancellationToken) Inherited from WebSocket
ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a