Package io.openems.backend.b2bwebsocket
Class OnClose
- java.lang.Object
-
- io.openems.backend.b2bwebsocket.OnClose
-
-
Constructor Summary
Constructors Constructor Description OnClose(B2bWebsocket 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(B2bWebsocket 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
-
-