Leave Room

Once you're done with a call and want to exit, call leave on the HMSSDK instance you created to join it. This function will return a promise that will resolve upon completion of leave process.

await hmsInstance.leave();