Javascript SDK
Authentification
1. 대시보드에서 설정에서 프로젝트ID 를 확인 합니다.
var gc = new gamechat.Chat();
gc.initialize(projectId);
// 싱가폴 리전 사용 시
gc.initialize(projectId, { region : 'sg' });2. Connect to Game Chat Server
gc.setUser({
id: 'userId',
name: 'Nickname',
});
gc.connect(user_id, (err, res) => {
if (err) console.log(err);
});3. Disconnect from Game Chat Server
Communication
1. Subscribe / Unsubscribe
ID
type
desc
2. SendMessage
ID
type
desc
Event
Binding Event
Client API
1-1. Subscription
ID
type
desc
1-2. getSubscriptions
ID
type
desc
2-1. Channel
ID
type
desc
2-2. getChannels
ID
type
desc
2-4. create / update / delete Channel
2-5. getMessages
ID
type
desc
3-3. translateMessage
Last updated
Was this helpful?