Class GyWebSocketListenerImpl

java.lang.Object
org.noear.solon.server.grizzly.websocket.GyWebSocketListenerImpl
All Implemented Interfaces:
org.glassfish.grizzly.websockets.WebSocketListener

public class GyWebSocketListenerImpl extends Object implements org.glassfish.grizzly.websockets.WebSocketListener
Author:
noear 2025/9/25 created
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClose(org.glassfish.grizzly.websockets.WebSocket socket, org.glassfish.grizzly.websockets.DataFrame frame)
     
    void
    onConnect(org.glassfish.grizzly.websockets.WebSocket socket)
     
    void
    onFragment(org.glassfish.grizzly.websockets.WebSocket webSocket, byte[] bytes, boolean b)
     
    void
    onFragment(org.glassfish.grizzly.websockets.WebSocket webSocket, String s, boolean b)
     
    void
    onMessage(org.glassfish.grizzly.websockets.WebSocket socket, byte[] bytes)
     
    void
    onMessage(org.glassfish.grizzly.websockets.WebSocket socket, String text)
     
    void
    onPing(org.glassfish.grizzly.websockets.WebSocket socket, byte[] bytes)
     
    void
    onPong(org.glassfish.grizzly.websockets.WebSocket socket, byte[] bytes)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GyWebSocketListenerImpl

      public GyWebSocketListenerImpl()
  • Method Details

    • onConnect

      public void onConnect(org.glassfish.grizzly.websockets.WebSocket socket)
      Specified by:
      onConnect in interface org.glassfish.grizzly.websockets.WebSocketListener
    • onMessage

      public void onMessage(org.glassfish.grizzly.websockets.WebSocket socket, String text)
      Specified by:
      onMessage in interface org.glassfish.grizzly.websockets.WebSocketListener
    • onMessage

      public void onMessage(org.glassfish.grizzly.websockets.WebSocket socket, byte[] bytes)
      Specified by:
      onMessage in interface org.glassfish.grizzly.websockets.WebSocketListener
    • onPing

      public void onPing(org.glassfish.grizzly.websockets.WebSocket socket, byte[] bytes)
      Specified by:
      onPing in interface org.glassfish.grizzly.websockets.WebSocketListener
    • onPong

      public void onPong(org.glassfish.grizzly.websockets.WebSocket socket, byte[] bytes)
      Specified by:
      onPong in interface org.glassfish.grizzly.websockets.WebSocketListener
    • onClose

      public void onClose(org.glassfish.grizzly.websockets.WebSocket socket, org.glassfish.grizzly.websockets.DataFrame frame)
      Specified by:
      onClose in interface org.glassfish.grizzly.websockets.WebSocketListener
    • onFragment

      public void onFragment(org.glassfish.grizzly.websockets.WebSocket webSocket, String s, boolean b)
      Specified by:
      onFragment in interface org.glassfish.grizzly.websockets.WebSocketListener
    • onFragment

      public void onFragment(org.glassfish.grizzly.websockets.WebSocket webSocket, byte[] bytes, boolean b)
      Specified by:
      onFragment in interface org.glassfish.grizzly.websockets.WebSocketListener