Jocloud offers various client SDKs for you to connect to a global real-time network (RTN) for stable, reliable instant messaging services with high concurrency and ultra-low latency, helping you to create service scenarios quickly.
Jocloud’s mobile-specific instant messaging SDK code is Hummer
.
API | Description |
---|---|
setRegion | Set area or region |
HMR.getState | HummerSDK current status |
getState | A status for identifying a long connection channel |
init | Initialize an SDK |
open | Log in to an SDK |
close | Log out of an SDK |
refreshToken | Refresh a user token |
addStateListener | Add an SDK state listener |
removeStateListener | Remove an SDK state listener |
addTokenInvalidListener | Add a token invalid listener |
removeTokenInvalidListener | Remove a token invalid listener |
addChannelStateListener | Add a channel state listener |
removeChannelStateListener | Remove a channel state listener |
getVersion | Get SDK version information |
getService | Get a Hummer service instance |
Callback | Description |
---|---|
onUpdateHummerState | Callback of SDK status changes |
onHummerPreviousTokenExpired | Callback of token expiration |
onUpdateChannelState | Callback of long connection status changes |
API | Description |
---|---|
createChatRoom | Create a chatroom |
dismissChatRoom | Close a chatroom |
fetchBasicInfo | Get basic chatroom information |
fetchChatRoomInfo | Get all information of a chatroom |
fetchMemberCount | Get the total number of members of a chatroom |
changeBasicInfo | Change chatroom information |
addOrUpdateChatRoomInfo | Add or update the chatroom information |
addListener | Add a chatroom listener |
removeListener | Remove a chatroom listener |
API | Description |
---|---|
onChatRoomDismissed | Callback of chatroom closing |
onBasicInfoChanged | Callback of chatroom information changes |
onRoomInfoAddedOrUpdated | Callback of chatroom information added or updated |
API | Description |
---|---|
join | Join a chatroom |
leave | Exit a chatroom |
kick | Remove chatroom users |
addRole | Add a role |
removeRole | Remove a role |
fetchMembers | Get a chatroom member list |
fetchRoleMembers | Get a role list |
muteMember | Mute chatroom members |
unmuteMember | Unmute members |
fetchMutedUsers | Get a mute list |
isMuted | Determine member mute status |
setUserInfo | Set own user information |
deleteUserInfoByKeys | Delete your own user information |
addOrUpdateUserInfo | Add or update information for a specific user |
| fetchUserInfo | Get information of a specific user | | batchFetchUserInfos | Get information of specific users in a batch | | fetchOnlineUserInfoList | Get a chatroom user information list | | addMemberListener | Add a chatroom member listener | | removeMemberListener | Remove a chatroom member listener |
Callback | Description |
---|---|
onMemberJoined | Callback of member joining a chatroom |
onChatRoomMemberOffline | Callback of member offline |
onChatRoomMemberLeave | Callback of member exiting a chatroom |
onMemberCountChanged | Callback of chatroom member count change |
onMemberKicked | Callback of chatroom member removal |
onRoleAdded | Callback of chatroom member role addition |
onRoleRemoved | Callback of chatroom member role removal |
onMemberMuted | Callback of chatroom member muted |
onMemberUnmuted | Callback of chatroom member unmuted |
onUserInfoSet | Callback of chatroom member information setting |
onUserInfoDeleted | Callback of deleting a member's information |
onUserInfoAddedOrUpdated | Callback of the member information added or updated |
API | Description |
---|---|
send | Send messages (including public screen, unicast and broadcast) |
addMessageListener | Add a message listener |
removeMessageListener | Remove a message listener |
Callback | Description |
---|---|
beforeSendingMessage | Callback before sending a message |
afterSendingMessage | Callback after sending a message |
beforeReceivingMessage | Callback before receiving a message |
afterReceivingMessage | Callback after receiving a message |