Skip to main content

Terminate

This page explains how to terminate a chat.

Description

This call method is related to terminating a chat.

Call methods

// This is the method that terminates connection with the chat server.  
ChatClient.Dispose();

Example

// It is recommended to insert it in the quit methods in Unity3D so that it can be called.  

private void OnDestroy()
{
ChatClient?.Dispose();
}

private void OnApplicationQuit()
{
ChatClient?.Dispose();
}