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

Messages are categorized as follows, depending on the message characteristics and the recipient.

  • 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

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.