注意看下面的日志,登录之前我做了两件事:1 openClient 2 login,两件事都回调成功,我才认为是登录成功(这里没问题吧?),然后我在查询的时候,会遇到下面的问题,socket没有打开,我的问题是:

既然已经回调,那socket应该已经建立,为什么还出这个错误?

如果要等socket成功,那在哪里可以收到这个通知?

2015-10-24 00:31:30:395 [19893:607] error = {
NSLocalizedFailureReason = "websocket not opened";
reason = "websocket not opened";
}, Error Domain=AVOSCloudIMErrorDomain Code=5 "The operation couldn’t be completed. websocket not opened" UserInfo=0x7d664060 {reason=websocket not opened, NSLocalizedFailureReason=websocket not opened}
2015-10-24 00:31:30.501 [19893:888221] objects count = 9, Error: (null) (null)
2015-10-24 00:31:30.505 [19893:888221] objects count = 13, Error: (null) (null)
2015-10-24 00:31:44.050 [19893:888537] [INFO] -[AVIMWebSocketWrapper internalOpenWebSocketConnection:] Open websocket with url: wss://rtm56.avoscloud.com:6799/
2015-10-24 00:31:49.608 [19893:888221] [INFO] -[AVIMWebSocketWrapper webSocketDidOpen:] Websocket connection opened.

SDK版本号用的多少?
是在做什么查询的时候遇到的问题?
能否提供一段可复现的代码?