# NettyClient **Repository Path**: geguo/nettyclient ## Basic Information - **Project Name**: NettyClient - **Description**: 基于Netty 框架实现的一个IM 客户端 - **Primary Language**: Android - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-06-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 连接成功后 阻塞的线程放在哪里比较好 1. 放在Server中 2. 放在Application 中 3. 放在Activity中 ## 一叶偏风的解决方案 1. 长连接放在Application 中 2. 轮询放在一个Service中 3. 用一个连接对象管理长连接,在服务中开启子线程创建该对象 ## minaLongConnectManager 连接管理对象 connectIsNull isNeedRestart checkConnectStatus isActive isConnected