public class AblyRealtime extends AblyRest
| Modifier and Type | Class and Description |
|---|---|
class |
AblyRealtime.Channels
A collection of the Channels associated with this Realtime
instance.
|
| Modifier and Type | Field and Description |
|---|---|
AblyRealtime.Channels |
channels
The
#Channels associated with this instance. |
Connection |
connection
The
Connection object for this instance. |
| Constructor and Description |
|---|
AblyRealtime(ClientOptions options)
Instance the Ably library with the given options.
|
AblyRealtime(java.lang.String key)
Instance the Ably library using a key only.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this instance.
|
void |
connect()
Initiate a connection.
|
protected void |
onAuthError(ErrorInfo errorInfo)
Authentication error occurred
|
protected void |
onAuthUpdated(java.lang.String token,
boolean waitForResponse)
Authentication token has changed.
|
publishBatch, publishBatchAsync, request, requestAsync, stats, statsAsync, time, timeAsyncpublic final Connection connection
Connection object for this instance.public AblyRealtime.Channels channels
#Channels associated with this instance.public AblyRealtime(java.lang.String key)
throws AblyException
key; - String key (obtained from application dashboard)AblyExceptionpublic AblyRealtime(ClientOptions options) throws AblyException
options: - see ClientOptions for optionsAblyExceptionpublic void connect()
Connection.connect().public void close()
Connection.connect().protected void onAuthUpdated(java.lang.String token,
boolean waitForResponse)
throws AblyException
onAuthUpdated in class AblyResttoken - new tokenwaitForResponse - wait for server response before returning from methodAblyExceptionprotected void onAuthError(ErrorInfo errorInfo)
onAuthError in class AblyRest