Class EventWebSocket

java.lang.Object
org.openhab.core.io.websocket.event.EventWebSocket
All Implemented Interfaces:
org.eclipse.jetty.websocket.api.WriteCallback

@WebSocket @NonNullByDefault public class EventWebSocket extends Object implements org.eclipse.jetty.websocket.api.WriteCallback
The EventWebSocket is the WebSocket implementation that extends the event bus
Author:
Jan N. Klug - Initial contribution, Florian Hotze - Add topic filter
  • Field Details

  • Constructor Details

  • Method Details

    • onClose

      @OnWebSocketClose public void onClose(int statusCode, String reason)
    • onConnect

      @OnWebSocketConnect public void onConnect(org.eclipse.jetty.websocket.api.Session session)
    • onText

      @OnWebSocketMessage public void onText(String message)
    • onError

      @OnWebSocketError public void onError(@Nullable org.eclipse.jetty.websocket.api.Session session, @Nullable Throwable error)
    • processEvent

      public void processEvent(Event event)
    • writeFailed

      public void writeFailed(@Nullable Throwable x)
      Specified by:
      writeFailed in interface org.eclipse.jetty.websocket.api.WriteCallback
    • writeSuccess

      public void writeSuccess()
      Specified by:
      writeSuccess in interface org.eclipse.jetty.websocket.api.WriteCallback