Interface OnClose

All Known Implementing Classes:
OnClose, OnClose, OnClose, OnClose
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
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(org.java_websocket.WebSocket ws, int code, String reason, boolean remote)
    Called after the websocket connection has been closed.
  • 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 - the WebSocket
      code - the close code
      reason - the close reason
      remote - Returns whether or not the closing of the connection was initiated by the remote host
      Throws:
      OpenemsException - on error