Region for the Agora RTM service. The default is GLOBAL
. See
AreaCode.
Compilation information of the Agora RTM SDK.
The reason of the connection state change.
The connection state.
Output ERROR level log information.
Output ERROR, WARNING, and INFO level log information.
Do not output any log information.
Output WARNING and INFO level log information.
(Return to the caller) The reason of the local invitation failure.
Call invitation state returned to the caller.
Message type.
Online state of the user.
Subscription type.
(Return to the callee) The reason of the local invitation failure.
Call invitation state returned to the callee.
Version of the Agora RTM SDK.
App ID of your project that must be a string containing 32 ASCII characters.
An RtmClient instance.
App ID of your project that must be a string containing 32 ASCII characters.
Region for the Agora RTM service. See AreaCode.
An RtmClient instance.
The configration of regions for connection.
CHINA
,
JAPAN
and ASIA
. This parameter is only valid
when the region for connection is GLOBAL
.
AgoraRTM is the exported module of the Agora RTM SDK.
If you import the Agora RTM Web SDK using the
<script>
tag, the SDK creates a global variable calledAgoraRTM
, which includes all the module members.Direct include
<script src="agora-rtm-sdk-0.9.1.js"></script>
in your HTML.Note:
The version `0.9.1` in the file name `agora-rtm-sdk-0.9.1.js` is for reference only, please use the latest version of the SDK.