RTM icon indicating copy to clipboard operation
RTM copied to clipboard

How can I use RTM in web?

Open wann2 opened this issue 5 years ago • 4 comments

In Node.js and Express system, it is very hard to use webpack like your sample. So I used like below index.html

...

...

But I got "Uncaught TypeError: AgoraRTM is not a constructor". How can I use RTM in web, not webpack? How can I use the codes in your rtm-client.js.

wann2 avatar Jun 11 '20 11:06 wann2

Can you describe how you run this demo on node.js express?

yoreland avatar Jun 12 '20 02:06 yoreland

The combination of Express(Node.js) and Webpack is very hard to use both of them. Express has route urls and the route urls render html files including javascript or jquery. But if I use webpack, then I can not use those route urls. When I use AgoraRTM of your rtm-client.js in html, I do not know and understand how to use them. I'd like to know how to use the RTM in html without webpack.

wann2 avatar Jun 12 '20 06:06 wann2

we have a quickstart guide here https://docs.agora.io/en/Real-time-Messaging/messaging_web?platform=Web

plutoless avatar Jun 14 '20 14:06 plutoless

is there any example of agora RTM for reactjs for real time messaging?? just like RTC video calling having the SDK for reactjs

azad-nft avatar Mar 03 '24 03:03 azad-nft