im_lib/src/main/java/com/anyun/im_lib/netty/TCPReadHandler.java
@@ -3,7 +3,7 @@ import android.util.Log; import com.anyun.im_lib.interf.IMSClientInteface; import com.anyun.im_lib.util.ByteUtil; import io.netty.buffer.ByteBuf; @@ -61,9 +61,9 @@ ByteBuf buf = (ByteBuf) msg; byte[] req = new byte[buf.readableBytes()]; buf.readBytes(req); Log.i(TAG, "channelRead hex str: "+ ByteUtil.byte2HexStr(req)); String str = new String(req, "UTF-8"); Log.i(TAG, "channelRead: "+ str); imsClient.getMsgDispatcher().receivedMsg( str ); }