Class OnClose
- java.lang.Object
-
- io.openems.backend.uiwebsocket.impl.OnClose
-
-
Constructor Summary
Constructors Constructor Description OnClose(UiWebsocketImpl parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(org.java_websocket.WebSocket ws, int code, java.lang.String reason, boolean remote)
Called after the websocket connection has been closed.
-
-
-
Constructor Detail
-
OnClose
public OnClose(UiWebsocketImpl parent)
-
-
Method Detail
-
run
public void run(org.java_websocket.WebSocket ws, int code, java.lang.String reason, boolean remote) throws OpenemsException
Description copied from interface:OnClose
Called after the websocket connection has been closed.- Specified by:
run
in interfaceOnClose
- Parameters:
ws
- theWebSocket
code
- the close codereason
- the close reasonremote
- Returns whether or not the closing of the connection was initiated by the remote host- Throws:
OpenemsException
- on error
-
-