Uses of Class
jakarta.websocket.CloseReason
Package
Description
This package contains all the Jakarta WebSocket APIs common to both the client and server side.
-
Uses of CloseReason in jakarta.websocket
Modifier and TypeMethodDescriptionvoid
Session.close
(CloseReason closeReason) Close the current conversation, giving a reason for the closure.void
Endpoint.onClose
(Session session, CloseReason closeReason) This method is called immediately prior to the session with the remote peer being closed.