public class WebSocketClientHandler extends io.netty.channel.SimpleChannelInboundHandler<Object>
| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<Integer> |
CLOSE_CODE_KEY |
static io.netty.util.AttributeKey<Boolean> |
LOCAL_INITIATED_CLOSE |
static io.netty.util.AttributeKey<String> |
REASON_KEY |
| Constructor and Description |
|---|
WebSocketClientHandler(Consumer<String> textMessageHandler,
Consumer<io.netty.buffer.ByteBuf> binaryMessageHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
acceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final io.netty.util.AttributeKey<Boolean> LOCAL_INITIATED_CLOSE
public static final io.netty.util.AttributeKey<Integer> CLOSE_CODE_KEY
public static final io.netty.util.AttributeKey<String> REASON_KEY
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterpublic void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2025. All rights reserved.