アップグレードの公式サイトによるとsocket.ioエラーマネージャがリリースされて終了しました。

英語で多くの情報をチェックアウトし、自分自身の公式ウェブサイトはまた、いくつかの質問を提起し、それは、このような問題の既往歴の公式サイト返事するのが面倒と推定されます。

 

ハードワークが報わ、最終的な理由であることが判明:あなたのマネージャーが解除されます。

 

you need to make sure the SocketManager is held strongly, not released by arc.

like this init:

First->

@Property(nonatomic,strong)SocketManager* manager;


And then->

NSURL* url = [[NSURL alloc] initWithString:socketUrl];
_manager = [[SocketManager alloc] initWithSocketURL:url config:@{@"log": @no, @"forcePolling": @yES,@"reconnectWait":@1}];
ChatSocket = _manager.defaultSocket;

 

这样就好了。

おすすめ

転載: www.cnblogs.com/PeterWolf/p/11504735.html