Class WebSocketEndPoint

java.lang.Object
jakarta.websocket.Endpoint
org.cometd.server.websocket.javax.WebSocketEndPoint
All Implemented Interfaces:
jakarta.websocket.MessageHandler, jakarta.websocket.MessageHandler.Whole<String>
Direct Known Subclasses:
WebSocketTransport.EndPoint

public class WebSocketEndPoint extends jakarta.websocket.Endpoint implements jakarta.websocket.MessageHandler.Whole<String>
  • Constructor Details

  • Method Details

    • onOpen

      public void onOpen(jakarta.websocket.Session wsSession, jakarta.websocket.EndpointConfig config)
      Specified by:
      onOpen in class jakarta.websocket.Endpoint
    • onMessage

      public void onMessage(String data)
      Specified by:
      onMessage in interface jakarta.websocket.MessageHandler.Whole<String>
    • onClose

      public void onClose(jakarta.websocket.Session wsSession, jakarta.websocket.CloseReason closeReason)
      Overrides:
      onClose in class jakarta.websocket.Endpoint
    • onError

      public void onError(jakarta.websocket.Session wsSession, Throwable failure)
      Overrides:
      onError in class jakarta.websocket.Endpoint
    • writeComplete

      protected void writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)