客户端对应版本 (3.3.4, 3.2.8) 都试过,一样的效果!
AVOSCloud 3.2.8 (was 3.3.4)
AVOSCloudCrashReporting 3.2.8 (was 3.3.4)
AVOSCloudIM 3.2.8 (was 3.3.4)
客户端1通过聊天室发出一个非暂态的消息 ‘ transient: false’
------ BEGIN LeanCloud IM Out Command ------
cmd: Direc
type: AVIMDirectCommand
content: : {
cmd: direct
peerId: "5785b1ef07961b70e4ce75a5"
directMessage {
msg: "{"lctype":-1,"lctext":"Ohio ","_lcattrs":{"dev":true,"username":"吴文钰"}}"
cid: "5785b1f2128fe1006034ff8f"
transient: false
}
}
------ END ---------------------------------
[VBOSE]>[-CMInputView intrinsicContentSize] CMInputViewintrinsicSize:265.50
[VBOSE]>[-CMMessageTableViewController tableView:cellForRowAtIndexPath:] tableView:10
2016-07-18 15:39:33.750 jike[68627:465943] [INFO] -[AVIMWebSocketWrapper webSocket:didReceiveMessage:] [Line 716]
------ BEGIN LeanCloud IM In Command ------
content: : {
cmd: ack
peerId: "5785b1ef07961b70e4ce75a5"
i: 6
ackMessage {
t: 1468827573693
uid: "6GU2kRiNSOGKq1qvEHN8Fw"
}
}
------ END --------------------------------
客户端2,收到此消息变成暂态消息了!2016-07-18 15:39:33.713 jike[12900:5919323] [INFO] -[AVIMWebSocketWrapper webSocket:didReceiveMessage:] [Line 716]
------ BEGIN LeanCloud IM In Command ------
content: : {
cmd: direct
peerId: "5785b1ef07961b70e4ce757c"
directMessage {
msg: "{"lctype":-1,"lctext":"Ohio ","_lcattrs":{"dev":true,"username":"吴文钰"}}"
fromPeerId: "5785b1ef07961b70e4ce75a5"
timestamp: 1468827573693
cid: "5785b1f2128fe1006034ff8f"
id: "6GU2kRiNSOGKq1qvEHN8Fw"
transient: true
}
}
------ END --------------------------------
聊天室下次进来,查询历史消息,还能收到此消息。
-
创建时间
16年7月18日
-
最后回复
16年7月19日
-
6
回复
-
1.9K
浏览
-
2
用户
-
2
链接