다음을 통해 공유


ServerStreamWebSocket.Closed 이벤트

정의

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

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

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

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

이벤트 유형

Windows 요구 사항

앱 기능
internetClientServer privateNetworkClientServer

적용 대상