7.11 Leave Group
The leaveGroup
function is used to leave any joined group.
The function takes the following parameters :
sessionId : Unique SessionId which is received in the login/registration function response.
groupId : Group Id of the Group.
bayunCore.leaveGroup("<sessionId>", "<groupId>")
.then(result => {
console.log("Response received for leaveGroup.");
console.log(result);
})
.catch(error => {
console.log("Error caught");
console.log(error);
});
Last updated
Was this helpful?