Uses of Class
io.undertow.websockets.core.WebSocketChannel
Packages that use WebSocketChannel
Package
Description
-
Uses of WebSocketChannel in io.undertow.websockets
Methods in io.undertow.websockets that return types with arguments of type WebSocketChannelMethods in io.undertow.websockets with parameters of type WebSocketChannelModifier and TypeMethodDescriptionvoid
WebSocketConnectionCallback.onConnect
(WebSocketHttpExchange exchange, WebSocketChannel channel) Is called once the WebSocket connection is established, which means the handshake was successful. -
Uses of WebSocketChannel in io.undertow.websockets.client
Methods in io.undertow.websockets.client that return WebSocketChannelModifier and TypeMethodDescriptionWebSocket13ClientHandshake.createChannel
(org.xnio.StreamConnection channel, String wsUri, ByteBufferPool bufferPool, org.xnio.OptionMap options) abstract WebSocketChannel
WebSocketClientHandshake.createChannel
(org.xnio.StreamConnection channel, String wsUri, ByteBufferPool bufferPool, org.xnio.OptionMap options) Methods in io.undertow.websockets.client that return types with arguments of type WebSocketChannelModifier and TypeMethodDescriptionstatic org.xnio.IoFuture<WebSocketChannel>
WebSocketClient.connect
(org.xnio.XnioWorker worker, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version) Deprecated.static org.xnio.IoFuture<WebSocketChannel>
WebSocketClient.connect
(org.xnio.XnioWorker worker, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version, WebSocketClientNegotiation clientNegotiation) Deprecated.static org.xnio.IoFuture<WebSocketChannel>
WebSocketClient.connect
(org.xnio.XnioWorker worker, org.xnio.ssl.XnioSsl ssl, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, InetSocketAddress bindAddress, URI uri, WebSocketVersion version, WebSocketClientNegotiation clientNegotiation, Set<ExtensionHandshake> clientExtensions) Deprecated.static org.xnio.IoFuture<WebSocketChannel>
WebSocketClient.connect
(org.xnio.XnioWorker worker, org.xnio.ssl.XnioSsl ssl, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version) Deprecated.static org.xnio.IoFuture<WebSocketChannel>
WebSocketClient.connect
(org.xnio.XnioWorker worker, org.xnio.ssl.XnioSsl ssl, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version, WebSocketClientNegotiation clientNegotiation) Deprecated.static org.xnio.IoFuture<WebSocketChannel>
WebSocketClient.connect
(org.xnio.XnioWorker worker, org.xnio.ssl.XnioSsl ssl, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version, WebSocketClientNegotiation clientNegotiation, Set<ExtensionHandshake> clientExtensions) Deprecated.org.xnio.IoFuture<WebSocketChannel>
WebSocketClient.ConnectionBuilder.connect()
-
Uses of WebSocketChannel in io.undertow.websockets.core
Methods in io.undertow.websockets.core that return WebSocketChannelModifier and TypeMethodDescriptionprotected WebSocketChannel
StreamSourceFrameChannel.getFramedChannel()
StreamSinkFrameChannel.getWebSocketChannel()
StreamSourceFrameChannel.getWebSocketChannel()
Methods in io.undertow.websockets.core that return types with arguments of type WebSocketChannelModifier and TypeMethodDescriptionWebSocketChannel.getPeerConnections()
Returns all 'peer' web socket connections that were created from the same endpoint.protected Collection<AbstractFramedStreamSourceChannel<WebSocketChannel,
StreamSourceFrameChannel, StreamSinkFrameChannel>> WebSocketChannel.getReceivers()
Methods in io.undertow.websockets.core with parameters of type WebSocketChannelModifier and TypeMethodDescriptionvoid
WebSocketCallback.complete
(WebSocketChannel channel, T context) static void
WebSocketUtils.echoFrame
(WebSocketChannel channel, StreamSourceFrameChannel ws) Echo back the frame to the sendervoid
AbstractReceiveListener.handleEvent
(WebSocketChannel channel) protected void
AbstractReceiveListener.onBinary
(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel) protected void
AbstractReceiveListener.onClose
(WebSocketChannel webSocketChannel, StreamSourceFrameChannel channel) protected void
AbstractReceiveListener.onCloseMessage
(CloseMessage cm, WebSocketChannel channel) protected void
AbstractReceiveListener.onError
(WebSocketChannel channel, Throwable error) void
WebSocketCallback.onError
(WebSocketChannel channel, T context, Throwable throwable) protected void
AbstractReceiveListener.onFullBinaryMessage
(WebSocketChannel channel, BufferedBinaryMessage message) protected void
AbstractReceiveListener.onFullCloseMessage
(WebSocketChannel channel, BufferedBinaryMessage message) protected void
AbstractReceiveListener.onFullPingMessage
(WebSocketChannel channel, BufferedBinaryMessage message) protected void
AbstractReceiveListener.onFullPongMessage
(WebSocketChannel channel, BufferedBinaryMessage message) protected void
AbstractReceiveListener.onFullTextMessage
(WebSocketChannel channel, BufferedTextMessage message) protected void
AbstractReceiveListener.onPing
(WebSocketChannel webSocketChannel, StreamSourceFrameChannel channel) protected void
AbstractReceiveListener.onPong
(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel) protected void
AbstractReceiveListener.onText
(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel) static void
WebSockets.sendBinary
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete binary message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static void
WebSockets.sendBinary
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete binary message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> void
WebSockets.sendBinary
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete binary message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> void
WebSockets.sendBinary
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete binary message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static void
WebSockets.sendBinary
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete binary message, invoking the callback when completestatic void
WebSockets.sendBinary
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete binary message, invoking the callback when completestatic <T> void
WebSockets.sendBinary
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete binary message, invoking the callback when completestatic <T> void
WebSockets.sendBinary
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete binary message, invoking the callback when completestatic void
WebSockets.sendBinary
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete binary message, invoking the callback when completestatic void
WebSockets.sendBinary
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete binary message, invoking the callback when completestatic <T> void
WebSockets.sendBinary
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete binary message, invoking the callback when completestatic <T> void
WebSockets.sendBinary
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete binary message, invoking the callback when completestatic void
WebSockets.sendBinaryBlocking
(PooledByteBuffer pooledData, WebSocketChannel wsChannel) Sends a complete binary message using blocking IO Automatically frees the pooled byte buffer when done.static void
WebSockets.sendBinaryBlocking
(ByteBuffer[] data, WebSocketChannel wsChannel) Sends a complete binary message using blocking IOstatic void
WebSockets.sendBinaryBlocking
(ByteBuffer data, WebSocketChannel wsChannel) Sends a complete binary message using blocking IOstatic void
WebSockets.sendClose
(int code, String reason, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete close message, invoking the callback when completestatic <T> void
WebSockets.sendClose
(int code, String reason, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete close message, invoking the callback when completestatic void
WebSockets.sendClose
(CloseMessage closeMessage, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete close message, invoking the callback when completestatic <T> void
WebSockets.sendClose
(CloseMessage closeMessage, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete close message, invoking the callback when completestatic void
WebSockets.sendClose
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete close message, invoking the callback when completestatic <T> void
WebSockets.sendClose
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete close message, invoking the callback when completestatic void
WebSockets.sendClose
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete close message, invoking the callback when completestatic <T> void
WebSockets.sendClose
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete close message, invoking the callback when completestatic void
WebSockets.sendCloseBlocking
(int code, String reason, WebSocketChannel wsChannel) Sends a complete close message, invoking the callback when completestatic void
WebSockets.sendCloseBlocking
(CloseMessage closeMessage, WebSocketChannel wsChannel) Sends a complete close message, invoking the callback when completestatic void
WebSockets.sendCloseBlocking
(ByteBuffer[] data, WebSocketChannel wsChannel) Sends a complete close message, invoking the callback when completestatic void
WebSockets.sendCloseBlocking
(ByteBuffer data, WebSocketChannel wsChannel) Sends a complete close message, invoking the callback when completestatic void
WebSockets.sendPing
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete ping message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static void
WebSockets.sendPing
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete ping message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> void
WebSockets.sendPing
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete ping message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> void
WebSockets.sendPing
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete ping message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static void
WebSockets.sendPing
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete ping message, invoking the callback when completestatic void
WebSockets.sendPing
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete ping message, invoking the callback when completestatic <T> void
WebSockets.sendPing
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete ping message, invoking the callback when completestatic <T> void
WebSockets.sendPing
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete ping message, invoking the callback when completestatic void
WebSockets.sendPing
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete ping message, invoking the callback when completestatic void
WebSockets.sendPing
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete ping message, invoking the callback when completestatic <T> void
WebSockets.sendPing
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete ping message, invoking the callback when completestatic <T> void
WebSockets.sendPing
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete ping message, invoking the callback when completestatic void
WebSockets.sendPingBlocking
(PooledByteBuffer pooledData, WebSocketChannel wsChannel) Sends a complete ping message using blocking IO Automatically frees the pooled byte buffer when done.static void
WebSockets.sendPingBlocking
(ByteBuffer[] data, WebSocketChannel wsChannel) Sends a complete ping message using blocking IOstatic void
WebSockets.sendPingBlocking
(ByteBuffer data, WebSocketChannel wsChannel) Sends a complete ping message using blocking IOstatic void
WebSockets.sendPong
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete pong message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static void
WebSockets.sendPong
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete pong message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> void
WebSockets.sendPong
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete pong message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> void
WebSockets.sendPong
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete pong message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static void
WebSockets.sendPong
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete pong message, invoking the callback when completestatic void
WebSockets.sendPong
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete pong message, invoking the callback when completestatic <T> void
WebSockets.sendPong
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete pong message, invoking the callback when completestatic <T> void
WebSockets.sendPong
(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete pong message, invoking the callback when completestatic void
WebSockets.sendPong
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete pong message, invoking the callback when completestatic void
WebSockets.sendPong
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete pong message, invoking the callback when completestatic <T> void
WebSockets.sendPong
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete pong message, invoking the callback when completestatic <T> void
WebSockets.sendPong
(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete pong message, invoking the callback when completestatic void
WebSockets.sendPongBlocking
(PooledByteBuffer pooledData, WebSocketChannel wsChannel) Sends a complete pong message using blocking IO Automatically frees the pooled byte buffer when done.static void
WebSockets.sendPongBlocking
(ByteBuffer[] data, WebSocketChannel wsChannel) Sends a complete pong message using blocking IOstatic void
WebSockets.sendPongBlocking
(ByteBuffer data, WebSocketChannel wsChannel) Sends a complete pong message using blocking IOstatic void
WebSockets.sendText
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static void
WebSockets.sendText
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> void
WebSockets.sendText
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> void
WebSockets.sendText
(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static void
WebSockets.sendText
(String message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete text message, invoking the callback when completestatic void
WebSockets.sendText
(String message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete text message, invoking the callback when completestatic <T> void
WebSockets.sendText
(String message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete text message, invoking the callback when completestatic <T> void
WebSockets.sendText
(String message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete text message, invoking the callback when completestatic void
WebSockets.sendText
(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete text message, invoking the callback when completestatic void
WebSockets.sendText
(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete text message, invoking the callback when completestatic <T> void
WebSockets.sendText
(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete text message, invoking the callback when completestatic <T> void
WebSockets.sendText
(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete text message, invoking the callback when completestatic void
WebSockets.sendTextBlocking
(PooledByteBuffer pooledData, WebSocketChannel wsChannel) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static void
WebSockets.sendTextBlocking
(String message, WebSocketChannel wsChannel) Sends a complete text message, invoking the callback when completestatic void
WebSockets.sendTextBlocking
(ByteBuffer message, WebSocketChannel wsChannel) Sends a complete text message, invoking the callback when completeConstructors in io.undertow.websockets.core with parameters of type WebSocketChannelModifierConstructorDescriptionprotected
StreamSinkFrameChannel
(WebSocketChannel channel, WebSocketFrameType type) protected
StreamSourceFrameChannel
(WebSocketChannel wsChannel, WebSocketFrameType type, int rsv, boolean finalFragment, PooledByteBuffer pooled, long frameLength, Masker masker, ChannelFunction... functions) protected
StreamSourceFrameChannel
(WebSocketChannel wsChannel, WebSocketFrameType type, PooledByteBuffer pooled, long frameLength) Constructor parameters in io.undertow.websockets.core with type arguments of type WebSocketChannelModifierConstructorDescriptionprotected
WebSocketChannel
(org.xnio.StreamConnection connectedStreamChannel, ByteBufferPool bufferPool, WebSocketVersion version, String wsUrl, String subProtocol, boolean client, boolean extensionsSupported, ExtensionFunction extensionFunction, Set<WebSocketChannel> peerConnections, org.xnio.OptionMap options) Create a newWebSocketChannel
8 -
Uses of WebSocketChannel in io.undertow.websockets.core.protocol
Methods in io.undertow.websockets.core.protocol that return WebSocketChannelModifier and TypeMethodDescriptionabstract WebSocketChannel
Handshake.createChannel
(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Create theWebSocketChannel
from theWebSocketHttpExchange
-
Uses of WebSocketChannel in io.undertow.websockets.core.protocol.version07
Subclasses of WebSocketChannel in io.undertow.websockets.core.protocol.version07Methods in io.undertow.websockets.core.protocol.version07 that return WebSocketChannelModifier and TypeMethodDescriptionHybi07Handshake.createChannel
(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Constructor parameters in io.undertow.websockets.core.protocol.version07 with type arguments of type WebSocketChannelModifierConstructorDescriptionWebSocket07Channel
(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, String wsUrl, String subProtocol, boolean client, boolean allowExtensions, ExtensionFunction extensionFunction, Set<WebSocketChannel> openConnections, org.xnio.OptionMap options) Create a newWebSocket07Channel
-
Uses of WebSocketChannel in io.undertow.websockets.core.protocol.version08
Subclasses of WebSocketChannel in io.undertow.websockets.core.protocol.version08Methods in io.undertow.websockets.core.protocol.version08 that return WebSocketChannelModifier and TypeMethodDescriptionHybi08Handshake.createChannel
(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Constructor parameters in io.undertow.websockets.core.protocol.version08 with type arguments of type WebSocketChannelModifierConstructorDescriptionWebSocket08Channel
(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, String wsUrl, String subProtocols, boolean client, boolean allowExtensions, ExtensionFunction extensionFunction, Set<WebSocketChannel> openConnections, org.xnio.OptionMap options) -
Uses of WebSocketChannel in io.undertow.websockets.core.protocol.version13
Subclasses of WebSocketChannel in io.undertow.websockets.core.protocol.version13Modifier and TypeClassDescriptionclass
A WebSocketChannel that handles version 13Methods in io.undertow.websockets.core.protocol.version13 that return WebSocketChannelModifier and TypeMethodDescriptionHybi13Handshake.createChannel
(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Constructor parameters in io.undertow.websockets.core.protocol.version13 with type arguments of type WebSocketChannelModifierConstructorDescriptionWebSocket13Channel
(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, String wsUrl, String subProtocols, boolean client, boolean allowExtensions, ExtensionFunction extensionFunction, Set<WebSocketChannel> openConnections, org.xnio.OptionMap options) -
Uses of WebSocketChannel in io.undertow.websockets.spi
Methods in io.undertow.websockets.spi that return types with arguments of type WebSocketChannelModifier and TypeMethodDescriptionAsyncWebSocketHttpServerExchange.getPeerConnections()
WebSocketHttpExchange.getPeerConnections()
Constructor parameters in io.undertow.websockets.spi with type arguments of type WebSocketChannelModifierConstructorDescriptionAsyncWebSocketHttpServerExchange
(HttpServerExchange exchange, Set<WebSocketChannel> peerConnections) BlockingWebSocketHttpServerExchange
(HttpServerExchange exchange, Set<WebSocketChannel> peerConnections)