Class WebSocketEndPoint

  • All Implemented Interfaces:
    javax.websocket.MessageHandler, javax.websocket.MessageHandler.Whole<String>

    public class WebSocketEndPoint
    extends javax.websocket.Endpoint
    implements javax.websocket.MessageHandler.Whole<String>
    • Method Detail

      • 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