| | |
| | | import com.anyun.im_lib.listener.IMSConnectStatusCallback; |
| | | import com.anyun.im_lib.listener.OnEventListener; |
| | | import com.anyun.im_lib.util.ByteUtil; |
| | | import com.anyun.im_lib.util.MyLog; |
| | | import com.safeluck.aykj.utils.BytesUtils; |
| | | |
| | | import java.nio.ByteBuffer; |
| | |
| | | Log.i(TAG, "sendMsg fail,channel为空"+msg); |
| | | } |
| | | try { |
| | | Log.i(TAG, "sendMsg: "+ BytesUtils.bytesToHexString(msg)); |
| | | MyLog.i("PlatformMessage", "sendMsg: "+ BytesUtils.bytesToHexString(msg)); |
| | | ByteBuf byteBuf = ByteBufAllocator.DEFAULT.ioBuffer(); |
| | | byteBuf.writeBytes(msg); |
| | | channel.writeAndFlush(byteBuf); |