Upgrade guide¶
This guide lists chat changes and discontinued items by Hive SDK version. Review the method, event, and message field changes for your target version.
SDK 26.8.0¶
Changes¶
Channel message reactions¶
React to a channel message using an app-defined reactionIndex from 1 to 200. The app defines each index's meaning. Each user can leave one reaction per message. See Set and clear reactions.
The reaction feature adds the following methods, events, and field.
setReaction,clearReaction: Set and clear reactionsgetReactions,getMyReaction: Query all reactions and your own reactiononSetReaction,onClearReaction: Channel listener events for setting and clearing reactionsChannelMessage.messageReaction: Reaction totals for each message
Calling setReaction with a different index replaces your reaction; the same index leaves it unchanged. clearReaction clears your reaction without an index. Notice messages do not support reactions.
Handle both events to display reaction changes. Replacing a reaction sends only onSetReaction with the new index, without onClearReaction.
Channel system messages¶
Receive channel system messages in real time and retrieve missed historical messages. System messages are sent only to channels and stored and queried separately from regular chat. See Channel events for receiving and Query channel events for retrieval.
The system message feature adds the following event, method, and object.
onChannelSystemMessage: Channel listener event for receiving system messagesChat.getSystemMessages: Retrieve past channel system messages- ChannelSystemMessage: System message object. Compose text with
messageTypeandmessageArgs, or display the defaultfallbackMessage.
Deprecated items¶
The following items are deprecated. Use their replacements.
- Like methods:
addReaction→setReaction,removeReaction→clearReaction - Like change events:
onAddReaction→onSetReaction,onRemoveReaction→onClearReaction - Like totals field:
ChannelMessage.reactions→ChannelMessage.messageReaction - Channel notice event:
onNoticeMessage→onChannelSystemMessage
Likes and reactions are separate features, with separate totals for each message. If you use both, display their totals separately in the app.
SDK 26.4.0¶
Changes¶
- Adds the new events
onConnectStartedandonConnectCompleted. TheonConnectStartedandonConnectCompletedevents replace the existingChat.reconnecteventsonReconnectStartedandonReconnected. When the chat connection is automatically retried, theonConnectStartedandonConnectCompletedevents are now delivered.- The
onConnectStartedevent occurs when a chat connection attempt starts. - The
onConnectCompletedevent delivers the result of the chat connection. It returns the connection result as-is whether the chat connection succeeds or fails. Because theonConnectCompletedevent replaces theonReconnectedevent, implement your logic so it performs the appropriate work for chat connection success or failure based on theonConnectCompletedevent result.
- The
Unsupported items¶
- (Planned deprecation) The
reconnectmethod of theChatclass is not supported.- Replace the existing manual reconnection request feature with the
Chat.connectmethod.
- Replace the existing manual reconnection request feature with the
- (Planned deprecation) The
onReconnectStartedandonReconnectedevents are not supported. The lists of channels successfully joined and channels that failed to join previously delivered by theonReconnectedevent are provided as empty arrays. - (Planned deprecation) The
onConnectedevent is not supported. Instead, use theonConnectCompletedevent and implement your logic so it handles work when the connection succeeds or fails.
Warning
Features scheduled for deprecation will have support fully removed starting from the next version. Therefore, they are not recommended for use and should be replaced with other features.
Hive SDK 25.8.0¶
Changes¶
- Chat functionality is supported starting from SDK 25.8.0 for the Windows version.
- Chat functionality is currently not supported on Steam Deck (support planned for the future).
Hive SDK 25.6.0¶
Changes¶
- The channel message retrieval method has changed from fetching the latest messages to fetching messages within a range before and after a specific message ID.
- A message ID, which uniquely identifies each message object, has been added.
- The
ChannelMessageListQueryParamsclass has been updated. To maintain previous behavior, setmessageIdto null and assign the same value to bothsizeandprevSize.
Hive SDK 25.4.0¶
Changes¶
- The following changes have been made to listener events registered via the
addConnectionListenermethod of theChatclass:- Added a new
onReconnectStartedevent. This is triggered when thereconnectAPI of theChatclass is called or when the chat connection is automatically retried due to internal state changes. - The
onReconnectedevent now includes aResultAPIobject containing result information.
- Added a new
Unsupported Items¶
- The
addDirectMessageListenerandremoveDirectMessageListenermethods of theChatclass are no longer supported. The previous 1:1 message receiving functionality can now be handled using theaddUserListenerandremoveUserListenermethods of theChatclass.