Upgrade guide¶
This page provides guidance on all changes to the Hive chat API and items that are no longer supported.
Refer to this content to smoothly upgrade your Chat integration to the latest version.
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.