Skip to content

Conversation

@AndyTWF
Copy link
Contributor

@AndyTWF AndyTWF commented Feb 2, 2026

Summary

Add documentation for the new ChatClient.dispose() method that releases all resources associated with the chat client.

Related PRs

Changes

  • Added new "Dispose of the client" section to the SDK setup page
  • Includes code examples for JavaScript, React, Swift, Kotlin, and Jetpack Compose
  • Documents what dispose() does and its idempotent behavior
  • Notes that the underlying Realtime connection is not closed by dispose()

Add new section documenting ChatClient.dispose() method for JavaScript,
React, Swift, Kotlin, and Jetpack Compose based on:
- ably/ably-chat-swift#477
- ably/ably-chat-kotlin#188
@coderabbitai
Copy link

coderabbitai bot commented Feb 2, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chat-dispose

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@AndyTWF AndyTWF added the review-app Create a Heroku review app label Feb 2, 2026
@ably-ci ably-ci temporarily deployed to ably-docs-chat-dispose-pfx5jvv February 2, 2026 23:31 Inactive
Copy link
Contributor

@m-hulbert m-hulbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpick but LGTM otherwise.

Comment on lines +360 to +362
- Release all rooms managed by the client
- Clean up connection listeners and timers
- Free internal resources
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Release all rooms managed by the client
- Clean up connection listeners and timers
- Free internal resources
- Release all rooms managed by the client.
- Clean up connection listeners and timers.
- Free internal resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-app Create a Heroku review app

Development

Successfully merging this pull request may close these issues.

3 participants