Package io.mats3.matssocket
Interface MatsSocketServer.SessionRemovedEvent
- Enclosing interface:
- MatsSocketServer
public static interface MatsSocketServer.SessionRemovedEvent
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Type of "remove": Either DEREGISTER, CLOSE or TIMEOUT. -
Method Summary
-
Method Details
-
getType
-
getMatsSocketSessionId
String getMatsSocketSessionId() -
getCloseCode
- Returns:
- the WebSocket "close code" if relevant (i.e. a WebSocket was actually connected: Won't have been with
TIMEOUT, can have been with CLOSE, always will have been with DEREGISTER) - the close codes used with
MatsSocket are detailed in
MatsSocketServer.MatsSocketCloseCodes
.
-
getReason
String getReason()- Returns:
- a "reason phrase" corresponding to the
close code
in the WebSocket lingo - but will also be set to something interesting if a WebSocket connection was not present.
-