Class WebSocketEndPoint

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

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

  • Method Details

    • onOpen

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

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

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

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

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