Class WebSocketClientEndpoint


  • public class WebSocketClientEndpoint
    extends java.lang.Object
    Created by Josh Gontijo on 6/8/17.
    • Method Summary

      Modifier and Type Method Description
      protected void onBinary​(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message)  
      protected void onClose​(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.CloseMessage message)
      Called when the server closes the connection
      protected void onConnect​(io.undertow.websockets.core.WebSocketChannel channel)  
      protected void onError​(io.undertow.websockets.core.WebSocketChannel channel, java.lang.Exception error)  
      protected void onPing​(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message)  
      protected void onPong​(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message)  
      protected void onText​(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedTextMessage message)  
      • Methods inherited from class java.lang.Object

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

      • WebSocketClientEndpoint

        public WebSocketClientEndpoint()
    • Method Detail

      • onConnect

        protected void onConnect​(io.undertow.websockets.core.WebSocketChannel channel)
      • onClose

        protected void onClose​(io.undertow.websockets.core.WebSocketChannel channel,
                               io.undertow.websockets.core.CloseMessage message)
        Called when the server closes the connection
        Parameters:
        channel - The client channel
        message - the close message sent by the server, may be null
      • onPing

        protected void onPing​(io.undertow.websockets.core.WebSocketChannel channel,
                              io.undertow.websockets.core.BufferedBinaryMessage message)
      • onPong

        protected void onPong​(io.undertow.websockets.core.WebSocketChannel channel,
                              io.undertow.websockets.core.BufferedBinaryMessage message)
      • onText

        protected void onText​(io.undertow.websockets.core.WebSocketChannel channel,
                              io.undertow.websockets.core.BufferedTextMessage message)
      • onBinary

        protected void onBinary​(io.undertow.websockets.core.WebSocketChannel channel,
                                io.undertow.websockets.core.BufferedBinaryMessage message)
      • onError

        protected void onError​(io.undertow.websockets.core.WebSocketChannel channel,
                               java.lang.Exception error)