@ChannelHandler.Sharable public class WebSocket00FrameEncoder extends io.netty.handler.codec.MessageToMessageEncoder<WebSocketFrame> implements WebSocketFrameEncoder
WebSocketFrame
into a ByteBuf
.
For the detailed instruction on adding add Web Socket support to your HTTP server, take a look into the
WebSocketServer example located in the io.netty.example.http.websocket
package.
Constructor and Description |
---|
WebSocket00FrameEncoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
WebSocketFrame msg,
List<Object> out) |
acceptOutboundMessage, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected void encode(io.netty.channel.ChannelHandlerContext ctx, WebSocketFrame msg, List<Object> out) throws Exception
encode
in class io.netty.handler.codec.MessageToMessageEncoder<WebSocketFrame>
Exception
Copyright © 2008–2023 The Netty Project. All rights reserved.