Package com.facilita.fc.web
Interface WebSocketClosedCallback
-
public interface WebSocketClosedCallbackAn interface defining the method that is called when aWebSocketis closed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonClosed(WebSocket webSocket, boolean closedByClient, java.lang.String reason)The method that is invoked when aWebSocketis closed.
-
-
-
Method Detail
-
onClosed
void onClosed(WebSocket webSocket, boolean closedByClient, java.lang.String reason) throws java.lang.Exception
The method that is invoked when aWebSocketis closed.- Parameters:
webSocket- TheWebSocketthat has been closed.closedByClient-trueif the WebSocket was closed by the client,falseif it was closed by the server.reason- The reason for closing the WebSocket.- Throws:
java.lang.Exception- An error occurred
-
-