部分手机断网或者更改网络后,socket不会受到close 或者 fail回调,这种情况怎么判断是否已连接状态呢?因为调用send方法会retrun true,实际上无法发送消息和无法接受消息
部分手机断网或者更改网络后,socket不会受到close 或者 fail回调,这种情况怎么判断是否已连接状态呢?因为调用send方法会retrun true,实际上无法发送消息和无法接受消息