public interface WebsocketOutbound extends NettyOutbound
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Function<? super ByteBuf,? extends WebSocketFrame> |
bytebufToWebsocketFrame |
static java.util.function.Function<? super String,? extends WebSocketFrame> |
stringToWebsocketFrame |
FILE_CHUNKED_STRATEGY_BUFFER| Modifier and Type | Method and Description |
|---|---|
String |
selectedSubprotocol()
Returns the websocket subprotocol negotiated by the client and server during
the websocket handshake, or null if none was requested.
|
default NettyOutbound |
send(Publisher<? extends ByteBuf> dataStream) |
default NettyOutbound |
sendString(Publisher<? extends String> dataStream,
Charset charset)
Send String to the peer, listen for any error on write and close on terminal signal
(complete|error).
|
alloc, context, context, getFileChunkedStrategy, onWriteIdle, options, sendByteArray, sendFile, sendFile, sendFileChunked, sendGroups, sendObject, sendObject, sendString, subscribe, thenneverComplete, thenstatic final java.util.function.Function<? super String,? extends WebSocketFrame> stringToWebsocketFrame
static final java.util.function.Function<? super ByteBuf,? extends WebSocketFrame> bytebufToWebsocketFrame
String selectedSubprotocol()
default NettyOutbound send(Publisher<? extends ByteBuf> dataStream)
send in interface NettyOutboundsend in interface Outbound<ByteBuf>default NettyOutbound sendString(Publisher<? extends String> dataStream, Charset charset)
NettyOutboundsendString in interface NettyOutbounddataStream - the dataStream publishing Buffer items to write on this channelcharset - the encoding charset