
Ably Chat SDK
Ably Chat is a set of purpose-built APIs for a host of chat features enabling you to create 1:1, 1:Many, Many:1 and Many:Many chat rooms for
any scale. It is designed to meet a wide range of chat use cases, such as livestreams, in-game communication, customer support, or social
interactions in SaaS products. Built on Ably's core service, it abstracts complex details to enable efficient chat
architectures.
Getting started
Everything you need to get started with Ably Chat for JVM and Android:
Supported platforms
Ably aims to support a wide range of platforms. If you experience any compatibility issues, open an issue in the repository or contact Ably support.
This SDK supports the following platforms:
| Platform | Support |
|---|
| Android | Android 7.0+ (API level 24+) |
| Java | Java 8+ |
[!NOTE]
Key functionality such as sending and receiving messages is powered by the ably-java library.
The ably-java library is included as an api dependency within the Chat SDK, so there is no need to manually add it to your project.
Installation
The Ably Chat SDK is available on the Maven Central Repository. To include the dependency in your project, add the following to your build.gradle file:
For Groovy:
implementation 'com.ably.chat:chat:1.2.0'
For Kotlin Script (build.gradle.kts):
implementation("com.ably.chat:chat:1.2.0")
For Android (build.gradle.kts):
implementation("com.ably.chat:chat:1.2.0")
implementation("com.ably.chat:chat-extensions-compose:1.2.0")
Usage
The following code connects to Ably's chat service, subscribes to a chat room, and sends a message to that room:
Releases
The CHANGELOG.md contains details of the latest releases for this SDK. You can also view all Ably releases on changelog.ably.com.
Contribute
Read the CONTRIBUTING.md guidelines to contribute to Ably or Share feedback or request a new feature.
Support, Feedback, and Troubleshooting
For help or technical support, visit Ably's support page. You can also view the community-reported GitHub issues or raise one yourself.