- Enclosing interface:
- WebSocket
public static interface WebSocket.OnClose
On close callback. Generated when client close the connection or when explicit calls to
WebSocket.close(WebSocketCloseStatus)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onClose
(WebSocket ws, WebSocketCloseStatus closeStatus) Generated when client close the connection or when explicit calls toWebSocket.close(WebSocketCloseStatus)
.
-
Method Details
-
onClose
Generated when client close the connection or when explicit calls toWebSocket.close(WebSocketCloseStatus)
.- Parameters:
ws
- WebSocket.closeStatus
- Close status.
-