融云直播端demo相关

demo中从某个聊天室退出后再次进入无法接收到消息
发布时间: 2018-03-06 19:54

回答:

在RCDLive.m中的connectRongCloudWithToken方法中添加如下代码:

#if !IsUseRongCloudIMKit

    // listen receive message

    [[RCIMClient sharedRCIMClient] setReceiveMessageDelegate:self object:nil];

    [[RCIMClient sharedRCIMClient] setRCConnectionStatusChangeDelegate:self];

# else

    [[RCIM sharedRCIM] setConnectionStatusDelegate:self];

    [[RCIM sharedRCIM] setReceiveMessageDelegate:self];

#endif

或者在RCDLiveChatRoomViewController.m文件中注释掉如下代码:

[[RCDLive sharedRCDLive]logoutRongCloud];




我对此仍有疑问!继续追问