Open the admin panel and switch to the chat operation tab.
Click on "Take chat offline". You will be asked to confirm the action.
Any logged in users will be logged out, and the default offline message will show.
Once all are disconnected, you can click on the same button "Take chat online", than users will be able to login again.