다음을 통해 공유


ServerMessageWebSocket.Closed 이벤트

정의

닫기 핸드셰이크의 일부로 ServerMessageWebSocket 개체에 닫기 프레임이 수신될 때 발생합니다.

// 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) 

이벤트 유형

Windows 요구 사항

앱 기능
internetClientServer privateNetworkClientServer

적용 대상