Logout

Web User Logout Guide

Call the following code when a user logs out from your website:

Pre-built customizable chat UI

$applozic.fn.applozic('logout');

Build your UI from scratch

window.Applozic.AlCustomService.logout();

Disconnect socket connection

By default socket gets disconnected on performing logout. If you want to use socket disconnect for your use case then you can call below mentioned function.

window.Applozic.ALSocket.disconnect();

What’s Next
Did this page help you?