java.lang.Object
io.openems.edge.controller.api.websocket.OnClose
All Implemented Interfaces:
OnClose

public class OnClose extends Object implements OnClose
  • Constructor Details

  • Method Details

    • run

      public void run(org.java_websocket.WebSocket ws, int code, String reason, boolean remote) throws OpenemsException
      Description copied from interface: OnClose
      Called after the websocket connection has been closed.
      Specified by:
      run in interface OnClose
      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