deprecated at VideoSession or Error Message
honey101915 opened this issue · 2 comments
honey101915 commented
Hello I am using "agora-react-native-rtm": "^1.5.0",
when ever i try to implement , it gives me an error deprecated and Error
here is my code ..
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AgoraRTMEngine.current = new RtmEngine();
AgoraRTMEngine.current.on('error', (evt) => {
console.log(evt, "evtevtevtevt");
})
await AgoraRTMEngine.current.createClient(agoraTokenChannel.channelName);
AgoraRTMEngine.current.login({
uid: 0,
token: agoraTokenChannel.token,
});
setTimeout(async () => {
await AgoraRTMEngine.current.joinChannel(agoraTokenChannel.channelName).catch((e) => console.log(e, "joinChannel AgoraRTMEngine"));
}, 1000);
setTimeout(() => {
// AgoraRTMEngine.current.on('channelMemberLeft', (evt) => {
// let { channelId, uid } = evt;
AgoraRTMEngine.current?.sendMessageByChannelId(
agoraTokenChannel.channelName,
agoraTokenChannel.channelName + "popppoppopppop",
)
// });
}, 5000);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
arsyrangga commented
same problem
LichKing-2234 commented
pls refer to the comments and migrate to the suggestion.