Skip to main content

Terminate

This page explains how to terminate a chat.

Description

It is recommended that you call the function to terminate the chat before closing the app. Because reconnection occurs automatically by internally detecting the network status, you do not need to check the network status separately or process the termination while the app is running.

The following call method and example code are related to terminating the chat.

Call method

// This is the method that terminates connection with the chat server.  
BackndChat::BDChatMain::Shutdown();

Example

// It is recommended to call it once upon terminating the app.
ChatClientManager::~ChatClientManager()
{
BackndChat::BDChatMain::Shutdown();
}