Class WsConnection


  • public class WsConnection
    extends StreamConnection
    Created by Josh Gontijo on 6/8/17.
    • Method Detail

      • tryConnect

        protected void tryConnect()
                           throws java.lang.Exception
        Specified by:
        tryConnect in class StreamConnection
        Throws:
        java.lang.Exception
      • isOpen

        public boolean isOpen()
      • close

        public void close()
      • close

        public void close​(io.undertow.websockets.core.CloseMessage closeMessage)
      • channel

        public io.undertow.websockets.core.WebSocketChannel channel()
      • sendText

        public java.util.concurrent.CompletableFuture<WsConnection> sendText​(java.lang.String message)
      • sendBinary

        public java.util.concurrent.CompletableFuture<WsConnection> sendBinary​(byte[] bytes)
      • sendBinary

        public java.util.concurrent.CompletableFuture<WsConnection> sendBinary​(java.nio.ByteBuffer byteBuffer)
      • sendPing

        public java.util.concurrent.CompletableFuture<WsConnection> sendPing​(byte[] bytes)
      • sendPing

        public java.util.concurrent.CompletableFuture<WsConnection> sendPing​(java.nio.ByteBuffer byteBuffer)
      • sendPong

        public java.util.concurrent.CompletableFuture<WsConnection> sendPong​(byte[] bytes)
      • sendPong

        public java.util.concurrent.CompletableFuture<WsConnection> sendPong​(java.nio.ByteBuffer byteBuffer)