setBatchMsgListener
Feature Introduction
Note
Set a batch message event listener. For batch push of new messages, it is recommended to use this.
Attention
- Call immediately after
initSDK
. - Can only be called once.
- After setting, the
onRecvNewMessage
andonRecvOfflineNewMessage
callbacks inadvancedMsgListener
will no longer be triggered.
- uni-app
- Browser/Electron/MiniProgram
- React-Native
Function Prototype
Function Prototype
Function Prototype
Attention
After successful login, it is automatically set. Clients can directly use the listener. For message event details, see.
Attention
After successful initialization, it is automatically set. The callback will be transmitted to the client through globalEvent
. For message event details, see.
Attention
After successful initialization, it's set automatically. You can directly use the listener on the client side. Details on message events can be found here