연결 상태 조회
채팅 서버의 접속 상태를 조회합니다.
호출 정보
bool IsConnected() {}
소스 코드
using UnityEngine;
using PlayNANOO.ChatServer;
using PlayNANOO.ChatServer.Models;
public class PlayNANOOChatExample : MonoBehaviour, IChatListener
{
ChatClient chatClient;
void Start()
{
chatClient = new ChatClient(this);
chatClient.SetPlayer("USER_ID", "USER_NAME");
chatClient.Connect();
bool isConnected = chatClient.IsConnected();
if (isConnected)
{
Debug.Log("Connected");
}
else
{
Debug.Log("DisConnected");
}
}
}