- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface OnClose
(org.java_websocket.WebSocket ws, int code, String reason, boolean remote) throws OpenemsExceptionCalled after the websocket connection has been closed.
code- the close code
reason- the close reason
remote- Returns whether or not the closing of the connection was initiated by the remote host
OpenemsException- on error