Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated at VideoSession or Error Message #62

Open
honey101915 opened this issue Apr 8, 2022 · 2 comments
Open

deprecated at VideoSession or Error Message #62

honey101915 opened this issue Apr 8, 2022 · 2 comments

Comments

@honey101915
Copy link

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
Copy link

same problem

@LichKing-2234
Copy link
Contributor

pls refer to the comments and migrate to the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants