Initialization
Last updated
Last updated
Before using Game Chat, it must be initialized. Add the project ID you checked in the dashboard. To initialize Game Chat, follow these steps:
Access the dashboard and check the project ID in the settings menu.
Use the following code to initialize instances.
Import the NBaseSDK module.
Create an NBaseSDK Chat instance.
Initialize NChat. Enter the settings for projectId, region, and language.
ID | Type | Description | Required |
---|---|---|---|
Basic error handling is to add the code inside the try... catch as follows:
PROJECT_ID
string
ID (Game Chat dashboard Project ID)
O
REGION
string
Region (use "kr" if not using a specific one)
O
LANGUAGE
string
Language code ("en", "ko", etc.)
O