Package dev.adlin.vts4j.core.socket
Class CloseReason
java.lang.Object
dev.adlin.vts4j.core.socket.CloseReason
An object for convenient work with reasons for WebSocket closure
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CloseReason
-
-
Method Details
-
getCode
public int getCode()- Returns:
- connection close code
-
getReason
- Returns:
- reason for closing the connection
-
isRemote
public boolean isRemote()- Returns:
- bool indicating whether it was called by the server or the client
-