Compartir a través de


ServerMessageWebSocket.Closed Evento

Definición

Se produce cuando se recibe un marco de cierre en el objeto ServerMessageWebSocket como parte del protocolo de enlace de cierre.

// Register
event_token Closed(TypedEventHandler<ServerMessageWebSocket, WebSocketClosedEventArgs const&> const& handler) const;

// Revoke with event_token
void Closed(event_token const* cookie) const;

// Revoke with event_revoker
ServerMessageWebSocket::Closed_revoker Closed(auto_revoke_t, TypedEventHandler<ServerMessageWebSocket, WebSocketClosedEventArgs const&> const& handler) const;
public event TypedEventHandler<ServerMessageWebSocket,WebSocketClosedEventArgs> Closed;
function onClosed(eventArgs) { /* Your code */ }
serverMessageWebSocket.addEventListener("closed", onClosed);
serverMessageWebSocket.removeEventListener("closed", onClosed);
- or -
serverMessageWebSocket.onclosed = onClosed;
Public Custom Event Closed As TypedEventHandler(Of ServerMessageWebSocket, WebSocketClosedEventArgs) 

Tipo de evento

Requisitos de Windows

Características de aplicaciones
internetClientServer privateNetworkClientServer

Se aplica a