Package io.openems.common.websocket
Interface OnClose
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
-
Method Details
-
run
void run(org.java_websocket.WebSocket ws, int code, String reason, boolean remote) throws OpenemsException Called after the websocket connection has been closed.- 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
-