Minor change, removed debug println
This commit is contained in:
@@ -67,7 +67,7 @@ public class NettyAcceptor implements ServerAcceptor {
|
|||||||
protected void decode(ChannelHandlerContext chc, BinaryWebSocketFrame frame, List<Object> out) throws Exception {
|
protected void decode(ChannelHandlerContext chc, BinaryWebSocketFrame frame, List<Object> out) throws Exception {
|
||||||
//convert the frame to a ByteBuf
|
//convert the frame to a ByteBuf
|
||||||
ByteBuf bb = frame.content();
|
ByteBuf bb = frame.content();
|
||||||
System.out.println("WebSocketFrameToByteBufDecoder decode - " + ByteBufUtil.hexDump(bb));
|
//System.out.println("WebSocketFrameToByteBufDecoder decode - " + ByteBufUtil.hexDump(bb));
|
||||||
bb.retain();
|
bb.retain();
|
||||||
out.add(bb);
|
out.add(bb);
|
||||||
}
|
}
|
||||||
@@ -79,7 +79,7 @@ public class NettyAcceptor implements ServerAcceptor {
|
|||||||
protected void encode(ChannelHandlerContext chc, ByteBuf bb, List<Object> out) throws Exception {
|
protected void encode(ChannelHandlerContext chc, ByteBuf bb, List<Object> out) throws Exception {
|
||||||
//convert the ByteBuf to a WebSocketFrame
|
//convert the ByteBuf to a WebSocketFrame
|
||||||
BinaryWebSocketFrame result = new BinaryWebSocketFrame();
|
BinaryWebSocketFrame result = new BinaryWebSocketFrame();
|
||||||
System.out.println("ByteBufToWebSocketFrameEncoder encode - " + ByteBufUtil.hexDump(bb));
|
//System.out.println("ByteBufToWebSocketFrameEncoder encode - " + ByteBufUtil.hexDump(bb));
|
||||||
result.content().writeBytes(bb);
|
result.content().writeBytes(bb);
|
||||||
out.add(result);
|
out.add(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user