leave()
leave()
Leaves the meeting. If there is no meeting, this method does nothing.
Return type
Promise
that resolves to anundefined
Error type
If leave()
fails to emit, daily-js
logs a message to the console "could not emit 'left-meeting'"
.
Sample code
let call = Daily.createCallObject();call.leave();