Chat¶
Hive SDK chat provides real-time, group, and one-on-one chat, as well as user blocking. AI chat filtering detects and blocks prohibited words and advertising text.
Channel¶
A channel is an independent conversation space where users exchange messages. Users join a channel to talk with its other members.
Channel type¶
Use the following channel types according to the conversation's purpose and participants.
PUBLIC: A channel anyone can enterPRIVATE: A channel that requires a password to enterGROUP: A channel for specific users, such as a guild channelONE_ON_ONE: A one-on-one conversation channel
Channel owner¶
The channel owner holds ownership of the channel. The channel remains even if its owner leaves.
- User: A channel creator with a Player ID
- System: A channel creator without a Player ID
Message¶
Messages are classified by recipient as channel messages or one-on-one messages.
- Channel message: A message sent to all users in a channel you have joined
- One-on-one message: A message sent to a specific user
Users can reply, react, and specify conversation partners with the following features.
Reply messages¶
Reply to a specific in-game message and view the original message together with its replies.
Mention messages¶
Mention a user in in-game chat by including their nickname in a message. Even if the mentioned user is offline, they can view the message through a push notification.
Display reactions¶
Express an opinion or reaction to an in-game message using one of up to 200 game-defined reactions. View the reaction count for each message in-game.
Reactions apply to channel messages and are counted separately from Likes. See Set and clear reactions and Query reactions.
Event¶
Events notify the app of state changes such as chat server connections, channel entry or exit, and incoming one-on-one messages. The main event types are listed below.
- Chat server connection events
- Channel-related events
- 1:1 message-related events
Development flow example¶
This flowchart shows an example chat implementation. Use it to understand Hive SDK chat features and the development flow.
