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.

  • HMR offers SDK initialization login and configuration functions.
  • ChatRoom Service offers an API for chatroom management.
  • ChatService offers a channel for sending public screen, unicast and broadcast signaling messages.

Basic Functions

setRegionSet area or region
HMR.getStateHummerSDK current status
getStateA status for identifying a long connection channel
initInitialize an SDK
openLog in to an SDK
closeLog out of an SDK
refreshTokenRefresh a user token
addStateListenerAdd an SDK state listener
removeStateListenerRemove an SDK state listener
addTokenInvalidListenerAdd a token invalid listener
removeTokenInvalidListenerRemove a token invalid listener
addChannelStateListenerAdd a channel state listener
removeChannelStateListenerRemove a channel state listener
getVersionGet SDK version information
getServiceGet a Hummer service instance
onUpdateHummerStateCallback of SDK status changes
onHummerPreviousTokenExpiredCallback of token expiration
onUpdateChannelStateCallback of long connection status changes

Chatroom Management

createChatRoomCreate a chatroom
dismissChatRoomClose a chatroom
fetchBasicInfoGet basic chatroom information
fetchChatRoomInfoGet all information of a chatroom
fetchMemberCountGet the total number of members of a chatroom
changeBasicInfoChange chatroom information
addOrUpdateChatRoomInfoAdd or update the chatroom information
addListenerAdd a chatroom listener
removeListenerRemove a chatroom listener
onChatRoomDismissedCallback of chatroom closing
onBasicInfoChangedCallback of chatroom information changes
onRoomInfoAddedOrUpdatedCallback of chatroom information added or updated

Chatroom Member Management

joinJoin a chatroom
leaveExit a chatroom
kickRemove chatroom users
addRoleAdd a role
removeRoleRemove a role
fetchMembersGet a chatroom member list
fetchRoleMembersGet a role list
muteMemberMute chatroom members
unmuteMemberUnmute members
fetchMutedUsersGet a mute list
isMutedDetermine member mute status
setUserInfoSet own user information
deleteUserInfoByKeysDelete your own user information
addOrUpdateUserInfoAdd 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 |

onMemberJoinedCallback of member joining a chatroom
onChatRoomMemberOfflineCallback of member offline
onChatRoomMemberLeaveCallback of member exiting a chatroom
onMemberCountChangedCallback of chatroom member count change
onMemberKickedCallback of chatroom member removal
onRoleAddedCallback of chatroom member role addition
onRoleRemovedCallback of chatroom member role removal
onMemberMutedCallback of chatroom member muted
onMemberUnmutedCallback of chatroom member unmuted
onUserInfoSetCallback of chatroom member information setting
onUserInfoDeletedCallback of deleting a member's information
onUserInfoAddedOrUpdatedCallback of the member information added or updated

Message Channel

sendSend messages (including public screen, unicast and broadcast)
addMessageListenerAdd a message listener
removeMessageListenerRemove a message listener
beforeSendingMessageCallback before sending a message
afterSendingMessageCallback after sending a message
beforeReceivingMessageCallback before receiving a message
afterReceivingMessageCallback after receiving a message

Was this page helpful?

Helpful Not helpful
Submitted! Your feedback would help us improve the website.