# leave chat
This is an event that leaves the chat room being connected.
If you are not ready, let's learn how to create it. Go to preparations
# Leave the chat room event
channel.leave(function () {});
1
- No return value other than callback
# code to apply to the project
channel.leave(function () {
// Logic after termination (screen cleanup, etc.)
});
1
2
3
2
3