Skip to content

Chat

Hive SDK chat feature provides core functionalities for seamless chatting in the app, including real-time chat, group chat, 1:1 chat, and user blocking features. Additionally, the AI chat filtering function can detect and block prohibited words and advertising texts, improving the user experience.

Channel

A channel is an independent chat space provided for real-time communication between users. Users can join the channel to send and receive messages.

Channel type

The types of channels provided are as follows.

Type Description
PUBLIC A channel that anyone can enter
PRIVATE A channel that can be entered by entering a password
GROUP A channel that only specific users can participate in (e.g., guild channel)

Channel owner

This is the entity that holds the channel ownership. The channel will not be deleted even if the channel owner leaves. The channel owners are distinguished as follows.

  • User
  • Channel creator with PlayerID
  • System
  • Channel creator without PlayerID

Message

메시지는 메시지 특성 및 수신자에 따라 크게 '채널 메시지'와 '1:1 메시지'로 구분합니다.

  • Channel message
    • A chat message sent to all users in the participating channel
  • 1:1 message
    • A chat message sent only to a specific user

The following features are available for users when sending chat messages:

  • Reply message
    • Allows users to reply to a specific message in-game.
    • Users can view both the original message and its replies together in-game.
  • Mention message
    • Enables users to mention a specific user in the chat by including their nickname in the message.
    • Even if the mentioned user is offline, they can receive a push notification with the message content.
  • Reaction
    • Users can express their opinion or reaction to a specific message in-game.
    • The number of reactions for each message can be viewed in-game.

Event

The events include connecting to the chat server, entering and exiting channels, receiving 1:1 messages, and they mainly convey the following three types of events.

  • Chat server connection events
  • Channel-related events
  • 1:1 message-related events

Development flow example

Below is a flowchart for implementing a chat service using the Hive SDK chat feature. Please refer to it only as an example to help understand and develop the SDK chat functionality.