setBatchMsgListener
Description
info
Set a listener for batch message events. It is recommended to use this to push new messages in batches.
Note
(1) Call immediately after initSDK;
(2) Can only be called once;
(3) After setting, the onRecvNewMessage and onRecvOfflineNewMessage callbacks in advancedMsgListener will no longer be triggered.
- uni-app
- Browser/Electron/MiniProgram
- React-Native
Function Prototype
Function Prototype
Function Prototype
Note
Automatically set after successful login. Can be used for listening directly on the client. See details of message events here
Note
Automatically set after successful initialization. The callback will be passed to the client via globalEvent. See details of message events here
Note
Automatically set after successful login. Can be used for listening directly on the client. See details of message events here