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