log如下:
2016-04-15 19:04:07.791 SingleClubTest[7918:3563906] [INFO] -[AVObject saveWithOption:eventually:verifyBefore:error:] [Line 665] Object not changed, ignore save request.
2016-04-15 19:04:07.793 SingleClubTest[7918:3564025] [INFO] -[AVIMWebSocketWrapper sendCommand:] [Line 637]
------ BEGIN LeanCloud IM Out Command ------
cmd: Report
type: AVIMReportCommand
content: : {
cmd: report
op: upload
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
reportMessage {
initiative: true
type: "token"
data: "3bba6392d4cdb80fabee3948d936d9ee6ef7b4421427e38aabcf6c9247c2ea61"
}
}
------ END ---------------------------------
2016-04-15 19:04:07.794 SingleClubTest[7918:3564025] [INFO] -[AVIMWebSocketWrapper sendCommand:] [Line 637]
------ BEGIN LeanCloud IM Out Command ------
cmd: Session
type: AVIMSessionCommand
content: : {
cmd: session
op: close
peerId: "118"
sessionMessage {
}
}
------ END ---------------------------------
2016-04-15 19:04:07.973 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper webSocket:didReceiveMessage:] [Line 716]
------ BEGIN LeanCloud IM In Command ------
content: : {
cmd: report
op: uploaded
peerId: "118"
reportMessage {
}
}
------ END --------------------------------
2016-04-15 19:04:08.012 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper webSocket:didReceiveMessage:] [Line 716]
------ BEGIN LeanCloud IM In Command ------
content: : {
cmd: session
op: closed
peerId: "118"
i: 8
sessionMessage {
}
}
------ END --------------------------------
2016-04-15 19:04:08.013 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper sendCommand:] [Line 637]
------ BEGIN LeanCloud IM Out Command ------
cmd: Report
type: AVIMReportCommand
content: : {
cmd: report
op: upload
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
reportMessage {
initiative: true
type: "token"
data: "3bba6392d4cdb80fabee3948d936d9ee6ef7b4421427e38aabcf6c9247c2ea61"
}
}
------ END ---------------------------------
[DEBUG] > 2016-04-15 19:04:08 GMT+8[SCHttpClient -[SCHttpClient requestPublicDelete:params:successBlock:failBlock:withToken:]][line 553] SendRequestDelete url:http://debug.dscapp.dscun.com/api/session body:{
} token=ea4f32b2fc6b87a40e3330eb53e41bb8
2016-04-15 19:04:08.019 SingleClubTest[7918:3564025] [DEBUG] -[LCCurlScheduler logCurlOperation:] [Line 80]
------ BEGIN LeanCloud REST Request ------
path: /1.1/batch/save
curl: curl -i -k --compressed -X POST -H 'User-Agent: AVOS Cloud iOS-v3.2.7 SDK' -H 'Content-Type: application/json; charset=utf-8' -H 'Accept: application/json' -H 'X-LC-Id: lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh' -H 'X-LC-Sign: 54c8a2e0600392c0a9a8794107fd3413,1460718248019' -H 'X-LC-Prod: 1' -d '{"requests":[{"path":"\/1.1\/installations","method":"POST","body":{"type":"Object","timeZone":"Asia\/Shanghai","badge":0,"channels":["public","customer","236","89","237","118"],"deviceType":"ios","objectId":"37aemJ4mHsT5U6m63VztXjqEJ42PdOBm","internalId":"37aemJ4mHsT5U6m63VztXjqEJ42PdOBm","deviceToken":"3bba6392d4cdb80fabee3948d936d9ee6ef7b4421427e38aabcf6c9247c2ea61"}}]}' "https://api.leancloud.cn/1.1/batch/save"
------ END -------------------------------
2016-04-15 19:04:08.123 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper webSocket:didReceiveMessage:] [Line 716]
------ BEGIN LeanCloud IM In Command ------
content: : {
cmd: report
op: uploaded
peerId: "118"
reportMessage {
}
}
------ END --------------------------------
[DEBUG] > 2016-04-15 19:04:08 GMT+8[SCHttpClient -[SCHttpClient requestSuccess:]][line 628] url:http://debug.dscapp.dscun.com/api/session response:{"code":0,"msg":"ok","data":{"token":"ea4f32b2fc6b87a40e3330eb53e41bb8"}} token=ea4f32b2fc6b87a40e3330eb53e41bb8
[DEBUG] > 2016-04-15 19:04:08 GMT+8[SCHttpClient -[SCHttpClient requestSuccess:]][line 680] DSCUN api report: eventName:DSCUN_DELETE_pi_session, eventLabel:ok
[DEBUG] > 2016-04-15 19:04:08 GMT+8[SCRelationManager -[SCRelationManager accountDidLogout]][line 98] [聊天][私聊]退出登录,清空私聊Relation信息
2016-04-15 19:04:08.409 SingleClubTest[7918:3563906] [DEBUG] _56-[AVPaasClient performCurl:saveResult:block:retryTimes:]block_invoke [Line 614]
------ BEGIN LeanCloud REST Response ------
path: /1.1/batch/save
cost: 0.390s
response: {"37aemJ4mHsT5U6m63VztXjqEJ42PdOBm":{"objectId":"37aemJ4mHsT5U6m63VztXjqEJ42PdOBm","updatedAt":"2016-04-15T11:04:08.376Z","createdAt":"2016-04-13T02:36:46.757Z"}}
------ END --------------------------------
2016-04-15 19:04:08.439 SingleClubTest[7918:3564032] [INFO] -[AVObject saveWithOption:eventually:verifyBefore:error:] [Line 665] Object not changed, ignore save request.
2016-04-15 19:04:16.910 SingleClubTest[7918:3563906] [INFO] -[AVIMWebSocketWrapper sendCommand:] [Line 637]
------ BEGIN LeanCloud IM Out Command ------
cmd: Report
type: AVIMReportCommand
content: : {
cmd: report
op: upload
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
reportMessage {
initiative: true
type: "token"
data: "3bba6392d4cdb80fabee3948d936d9ee6ef7b4421427e38aabcf6c9247c2ea61"
}
}
------ END ---------------------------------
2016-04-15 19:04:16.911 SingleClubTest[7918:3563906] [INFO] -[AVIMWebSocketWrapper sendCommand:] [Line 637]
------ BEGIN LeanCloud IM Out Command ------
cmd: Session
type: AVIMSessionCommand
content: : {
cmd: session
op: close
peerId: "118"
sessionMessage {
}
}
------ END ---------------------------------
2016-04-15 19:04:16.914 SingleClubTest[7918:3563906] [INFO] -[AVIMWebSocketWrapper sendCommand:] [Line 637]
------ BEGIN LeanCloud IM Out Command ------
cmd: Session
type: AVIMSessionCommand
content: : {
cmd: session
op: open
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
sessionMessage {
ua: "ios/v3.2.7"
r: false
deviceToken: "3bba6392d4cdb80fabee3948d936d9ee6ef7b4421427e38aabcf6c9247c2ea61"
}
}
------ END ---------------------------------
2016-04-15 19:04:16.919 SingleClubTest[7918:3564027] [INFO] -[AVObject saveWithOption:eventually:verifyBefore:error:] [Line 665] Object not changed, ignore save request.
2016-04-15 19:04:16.998 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper webSocket:didReceiveMessage:] [Line 716]
------ BEGIN LeanCloud IM In Command ------
content: : {
cmd: report
op: uploaded
peerId: "118"
reportMessage {
}
}
------ END --------------------------------
2016-04-15 19:04:17.050 SingleClubTest[7918:3563776] [DEBUG] -[AVIMWebSocketWrapper webSocket:didCloseWithCode:reason:wasClean:] [Line 772] Websocket closed with code:1001, reason:Stream end encountered.
2016-04-15 19:04:17.052 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper sendCommand:] [Line 637]
------ BEGIN LeanCloud IM Out Command ------
cmd: Report
type: AVIMReportCommand
content: : {
cmd: report
op: upload
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
reportMessage {
initiative: true
type: "token"
data: "3bba6392d4cdb80fabee3948d936d9ee6ef7b4421427e38aabcf6c9247c2ea61"
}
}
------ END ---------------------------------
2016-04-15 19:04:17.053 SingleClubTest[7918:3563776] [INFO] -[AVIMClient dealloc] [Line 205] AVIMClient dealloc.
2016-04-15 19:04:17.053 SingleClubTest[7918:3563776] [DEBUG] -[AVIMWebSocketWrapper reconnect] [Line 923] Websocket connection reconnect in 1 seconds.
2016-04-15 19:04:17.056 SingleClubTest[7918:3564023] [DEBUG] -[LCCurlScheduler logCurlOperation:] [Line 80]
------ BEGIN LeanCloud REST Request ------
path: /1.1/batch/save
curl: curl -i -k --compressed -X POST -H 'User-Agent: AVOS Cloud iOS-v3.2.7 SDK' -H 'Content-Type: application/json; charset=utf-8' -H 'Accept: application/json' -H 'X-LC-Id: lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh' -H 'X-LC-Sign: 5fb1768f71815f95e2fc8d0ba68ac7f1,1460718257055' -H 'X-LC-Prod: 1' -d '{"requests":[{"path":"\/1.1\/installations","method":"POST","body":{"type":"Object","timeZone":"Asia\/Shanghai","badge":0,"channels":["public","customer","236","89","237","118"],"deviceType":"ios","objectId":"37aemJ4mHsT5U6m63VztXjqEJ42PdOBm","internalId":"37aemJ4mHsT5U6m63VztXjqEJ42PdOBm","deviceToken":"3bba6392d4cdb80fabee3948d936d9ee6ef7b4421427e38aabcf6c9247c2ea61"}}]}' "https://api.leancloud.cn/1.1/batch/save"
------ END -------------------------------
[DEBUG] > 2016-04-15 19:04:17 GMT+8[SCChatManager -[SCChatManager imClientPaused:error:]][line 981] [聊天][AVIM]imClientPause error={
NSLocalizedFailureReason = "websocket not opened";
reason = "websocket not opened";
}
[ERROR] > [Login]登录失败 AVIM:msg={
NSLocalizedFailureReason = "Stream end encountered";
reason = "Stream end encountered";
}
2016-04-15 19:04:17.571 SingleClubTest[7918:3564081] [DEBUG] _56-[AVPaasClient performCurl:saveResult:block:retryTimes:]block_invoke [Line 614]
------ BEGIN LeanCloud REST Response ------
path: /1.1/batch/save
cost: 0.516s
response: {"37aemJ4mHsT5U6m63VztXjqEJ42PdOBm":{"objectId":"37aemJ4mHsT5U6m63VztXjqEJ42PdOBm","createdAt":"2016-04-13T02:36:46.757Z","updatedAt":"2016-04-15T11:04:17.483Z"}}
------ END --------------------------------
2016-04-15 19:04:17.678 SingleClubTest[7918:3564032] [INFO] -[AVObject saveWithOption:eventually:verifyBefore:error:] [Line 665] Object not changed, ignore save request.
2016-04-15 19:04:18.058 SingleClubTest[7918:3564032] [INFO] _60-[AVIMWebSocketWrapper openWebSocketConnectionWithCallback:]block_invoke [Line 366] Open websocket connection.
2016-04-15 19:04:18.059 SingleClubTest[7918:3564032] [INFO] -[AVIMWebSocketWrapper internalOpenWebSocketConnection:] [Line 514] Open websocket with url: wss://rtm52.leancloud.cn:6799/
[DEBUG] > 2016-04-15 19:04:18 GMT+8[SCChatManager -[SCChatManager imClientResuming:]][line 986] [聊天][AVIM]imClientResuming 聊天会话正在恢复
2016-04-15 19:04:18.482 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper webSocketDidOpen:] [Line 700] Websocket connection opened.
2016-04-15 19:04:18.484 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper sendCommand:] [Line 637]
------ BEGIN LeanCloud IM Out Command ------
cmd: Report
type: AVIMReportCommand
content: : {
cmd: report
op: upload
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
reportMessage {
initiative: true
type: "token"
data: "3bba6392d4cdb80fabee3948d936d9ee6ef7b4421427e38aabcf6c9247c2ea61"
}
}
------ END ---------------------------------
2016-04-15 19:04:18.484 SingleClubTest[7918:3564081] [INFO] -[AVIMWebSocketWrapper sendCommand:] [Line 637]
------ BEGIN LeanCloud IM Out Command ------
cmd: Session
type: AVIMSessionCommand
content: : {
cmd: session
op: open
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
i: 10
sessionMessage {
ua: "ios/v3.2.7"
r: true
deviceToken: "3bba6392d4cdb80fabee3948d936d9ee6ef7b4421427e38aabcf6c9247c2ea61"
}
}
------ END ---------------------------------
2016-04-15 19:04:18.484 SingleClubTest[7918:3564023] [INFO] -[AVObject saveWithOption:eventually:verifyBefore:error:] [Line 665] Object not changed, ignore save request.
[DEBUG] > 2016-04-15 19:04:18 GMT+8[SCChatManager -[SCChatManager imClientResumed:]][line 991] [聊天][AVIM]imClientResumed,聊天会话已恢复
2016-04-15 19:04:18.558 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper webSocket:didReceiveMessage:] [Line 716]
------ BEGIN LeanCloud IM In Command ------
content: : {
cmd: report
op: uploaded
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
reportMessage {
}
}
------ END --------------------------------
2016-04-15 19:04:18.594 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper webSocket:didReceiveMessage:] [Line 716]
------ BEGIN LeanCloud IM In Command ------
content: : {
cmd: session
op: opened
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
i: 11
sessionMessage {
st: "V7zt3cM9QAaRSnLhMIPxVg"
stTtl: 17280
}
}
------ END --------------------------------
2016-04-15 19:04:18.611 SingleClubTest[7918:3563776] [INFO] -[AVIMWebSocketWrapper webSocket:didReceiveMessage:] [Line 716]
------ BEGIN LeanCloud IM In Command ------
content: : {
cmd: unread
appId: "lhoerlv7x8t025hkbdtf3isb80npahmtlgj615gctyr52guh"
peerId: "118"
unreadMessage {
}
}
------ END --------------------------------
版本是V3.2.7
关闭会话调用的closeWithCallback
打开会话调用的openWithCallback
-
创建时间
16年4月15日
-
最后回复
19年9月5日
-
18
回复
-
7.6K
浏览
-
4
用户