Class OnOpen

  • All Implemented Interfaces:
    OnOpen

    public class OnOpen
    extends java.lang.Object
    implements OnOpen
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run​(org.java_websocket.WebSocket ws, com.google.gson.JsonObject handshake)
      Handles OnOpen event of WebSocket.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

        public void run​(org.java_websocket.WebSocket ws,
                        com.google.gson.JsonObject handshake)
                 throws OpenemsException
        Description copied from interface: OnOpen
        Handles OnOpen event of WebSocket.
        Specified by:
        run in interface OnOpen
        Parameters:
        ws - the WebSocket
        handshake - the HTTP handshake/headers
        Throws:
        OpenemsException