public static interface WebSocket.OnClose
WebSocket.close(WebSocketCloseStatus)
.Modifier and Type | Method and Description |
---|---|
void |
onClose(WebSocket ws,
WebSocketCloseStatus closeStatus)
Generated when client close the connection or when explicit calls to
WebSocket.close(WebSocketCloseStatus) . |
void onClose(@Nonnull WebSocket ws, @Nonnull WebSocketCloseStatus closeStatus)
WebSocket.close(WebSocketCloseStatus)
.ws
- WebSocket.closeStatus
- Close status.Copyright © 2020. All rights reserved.