Netty4Android icon indicating copy to clipboard operation
Netty4Android copied to clipboard

Kotlin + Netty 在 Android 上实现 Socket 的服务端 demo

Results 3 Netty4Android issues
Sort by recently updated
recently updated
newest added

服务端和客户端已经连接成功,服务端能给发送消息,且能够接收到客户端的心跳包信息。 但是客户端无法发送消息给服务端,因为代码执行到fun sendMsgToServer(data: String, listener: MessageStateListener) = channel?.run 时,channel是为null的。 而且在channel 赋值的地方:“channel = channelFuture?.channel()”,channelFuture也是null,无法赋值给channel