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