User can go Offline from the Popup Chat by following these steps:
Choose Offline option in the dropdown list.
After going Offline, user will see You are Offline message. To go back Online, click on the message.
In case you are using Embed Chat Room and want to go Offline, follow these steps -
Choose Offline from the list.
To go Online again, you need to click the Device Icon again and choose any status - Available, Idle or Busy.
Users can also set status as Available, Idle or Busy. Click here to read more