Backnd Chat

We provide a real-time chat service that specializes in mobile games.
Now, you can build an optimized communication tool without worrying about traffic.

  • Service without traffic issues

    Even if the number of users increases suddenly due to unforeseen events such as influencers, the server size automatically scales up, unlike other services.

  • A convenient console

    Apply it to games that use the Backnd Base to manage chats from an existing Backnd console.

  • Essential features for chats

    It provides various features necessary for chats, such as whisper, guild chat, blocking and reporting function, profanity filtering, flood protection, and announcement.

  • A simple but powerful service

    Just add a few lines of code to your game, and the chat feature is ready. It provides an integrated chat channel for both iOS and Android users.

Starting the Backnd Chat

1. Activate the Backnd Chat in the console

Backnd Chat is a service that allows game users to send and receive messages in real time.

  • Users must have nicknames.

  • Backnd Chat must be activated in the console.

2. Check if the server chat is activated

This feature checks if chat is activated on the server and if the client and chat server are connected.

//Checking if the Backnd Chat is activated
Backend.Chat.GetChatStatus();
{
  "chatServerStatus":
  {
    "chatServer":"y"
  }
}

3. Chat channel management

This feature checks information about general channels and guild channels.

  • General channels that anyone can access, and guild channels for guild chats are provided.

  • It provides channels with a 100-person capacity and automatically creates a new channel when more than 90 people access the channel.

//Chat channel management
Backend.Chat.GetGroupChannelList("Chat channel group name");

Using Backnd Chat

1. Chat messages

Send messages from general channels or guild channels.

  • Send messages to the currently connected channel.

// Send message
Backend.Chat.ChatToChannel(
ChannelType.Public, "Hello.");

// Receive chat message
Backend.Chat.OnChat = (ChatEventArgs args) =>
{
  // Print ‘Hello’ message
  Debug.Log(string.Format("OnChat {0}", args.Message));
}

2. Whisper

Send and receive whispers to specific users.

// Send whisper
Backend.Chat.Whisper(
"finn", "Let’s meet in the garden");

// Only the sender and receiver of the whisper will be called.
Backend.Chat.OnWhisper = (WhisperEventArgs args) =>
{
  // Print ‘Let’s meet in the garden’ message
  Debug.Log(string.Format("OnChat {0}", args.Message));
}
  

3. Announcement/operator chat

Send announcement messages through the chat for all inside the console. Also, an operator can be registered. Registered operators can use the in-game chat for all.

  • Backnd Console Backnd Chat — Users registered as operators in Announcement Management can send announcement messages from the client.

  • Backnd Console Backnd Chat — Send announcement messages by ChannelType using Send Announcement in the Announcement Management.

// Make operator announcement
Backend.Chat.ChatToGlobal(
"[Notice] The event is scheduled to start at 3 o'clock.");
  

4. Flood protection

To prevent indiscriminate chat input activities, chat input is prohibited for a certain period based on the conditions set in the console.

// Flood protection
Backend.Chat.SetRepeatedChatBlockMessage(
"Chat input is prohibited for a certain period for flood protection."
);

// Receive operator chat
Backend.Chat.OnGlobalChat = (GlobalChatEventArgs args) =>
{
  // Print ‘[Notice] The event is scheduled to start at 3 o'clock.’ message
  Debug.Log(string.Format("OnGlobalChat {0}", args.Message));
}

// Receive console announcement
Backend.Chat.OnNotification = (NotificationEventArgs args) =>
{
  // Print console announcement
  Debug.Log(string.Format("Title : {0} / Content : {1}", args.Subject, args.Message));
};

5. Profanity filtering

To prevent inappropriate chats in the game, the words set in the console are filtered when chats are received.

// Choose filter setting
Backend.Chat.SetFilterUse(true);

// Set filtering substitute words
Backend.Chat.SetFilterReplacementChar('*');

6. Reporting users

Report a specific user to the administrator. Reports can be viewed in the console.

// Report user
BackendReturnObject bro = Backend.Chat.ReportUser("ReportedNickname" , "Reasons", "Details");
if(bro.IsSuccess())
{
  Debug.Log("Report successful");
}

7. Blocking users

A blocking feature used between users to prevent harassment and spamming.

  • The list of blocked users is stored locally using the Backnd file system feature.

// Block user
Backend.Chat.BlockUser("Nickname", blockCallback =>
{
  // Success
  if (blockCallback)
  {
  }
});

Backnd — Global Top Game Backend

Contact us now to make a game backend for free!