im_lib/src/main/java/com/anyun/im_lib/netty/TCPReadHandler.java
@@ -58,14 +58,12 @@ @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { super.channelRead(ctx, msg); // TODO: 2019/12/4 //服务端返回消息后 ByteBuf buf = (ByteBuf) msg; byte[] req = new byte[buf.readableBytes()]; buf.readBytes(req); String str = new String(req, "UTF-8"); System.out.println("服务端数据为 :" + str); Log.i(TAG, "channelRead: "+ str); imsClient.getMsgDispatcher().receivedMsg( str );