Asynchronously processes and updates the received message.
const options = { message: { sender: "user1", receivers: ["user2"], message: "Hello", timestamp: Date.now(), group: false }, messages: [], participantsAll: [{ name: "user1", isBanned: false }], member: "user2", eventType: "conference", islevel: "1", coHost: "user3", updateMessages: (msgs) => { console.log("Updated messages:", msgs); }, updateShowMessagesBadge: (show) => { console.log("Show message badge:", show); },};await receiveMessage(options); Copy
const options = { message: { sender: "user1", receivers: ["user2"], message: "Hello", timestamp: Date.now(), group: false }, messages: [], participantsAll: [{ name: "user1", isBanned: false }], member: "user2", eventType: "conference", islevel: "1", coHost: "user3", updateMessages: (msgs) => { console.log("Updated messages:", msgs); }, updateShowMessagesBadge: (show) => { console.log("Show message badge:", show); },};await receiveMessage(options);
The options object.
A promise that resolves when the message processing is complete.
Asynchronously processes and updates the received message.
Example