logout method

dynamic logout()

Logout the user from the chat This is useful to logout the user from the chat. It will reset the user's session. It will also clear the user's data. It will also clear the user's segments. It will also clear the user's session data.

Implementation

logout() {
  webViewController?.evaluateJavascript(
      source: "window.\$crisp.push([\"do\", \"session:reset\"])");
  getSessionId();
}