Class WebSocketListenerImpl

java.lang.Object
org.noear.solon.boot.jetty.websocket.WebSocketListenerImpl
All Implemented Interfaces:
org.eclipse.jetty.websocket.api.Session.Listener, org.eclipse.jetty.websocket.api.Session.Listener.AutoDemanding

public class WebSocketListenerImpl extends Object implements org.eclipse.jetty.websocket.api.Session.Listener.AutoDemanding
WebSokcet 监听器
Since:
3.5
Author:
noear
  • Constructor Details

    • WebSocketListenerImpl

      public WebSocketListenerImpl()
  • Method Details

    • onWebSocketOpen

      public void onWebSocketOpen(org.eclipse.jetty.websocket.api.Session session)
      Specified by:
      onWebSocketOpen in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketBinary

      public void onWebSocketBinary(ByteBuffer payload, org.eclipse.jetty.websocket.api.Callback callback)
      Specified by:
      onWebSocketBinary in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketText

      public void onWebSocketText(String text)
      Specified by:
      onWebSocketText in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketClose

      public void onWebSocketClose(int statusCode, String reason, org.eclipse.jetty.websocket.api.Callback callback)
      Specified by:
      onWebSocketClose in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketError

      public void onWebSocketError(Throwable cause)
      Specified by:
      onWebSocketError in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketPing

      public void onWebSocketPing(ByteBuffer byteBuffer)
      Specified by:
      onWebSocketPing in interface org.eclipse.jetty.websocket.api.Session.Listener
    • onWebSocketPong

      public void onWebSocketPong(ByteBuffer byteBuffer)
      Specified by:
      onWebSocketPong in interface org.eclipse.jetty.websocket.api.Session.Listener