TwilioSyncClientDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | TWSSyncClient.h |
– syncClient:connectionStateChanged:
Called when the client connection state changes.
- (void)syncClient:(nonnull TwilioSyncClient *)client connectionStateChanged:(TWSClientConnectionState)stateParameters
client |
The sync client. |
|---|---|
state |
The current connection state of the client. |
Discussion
Called when the client connection state changes.
Declared In
TWSSyncClient.h
– syncClientTokenExpired:
Called when the client’s token has expired.
- (void)syncClientTokenExpired:(nonnull TwilioSyncClient *)clientParameters
client |
The sync client. |
|---|
Discussion
Called when the client’s token has expired.
In response, your delegate should generate a new token and call
syncClient:updateToken:completion: immediately as connection to
the server has been lost.
Declared In
TWSSyncClient.h
– syncClientTokenWillExpire:
Called when the client’s token will expire soon.
- (void)syncClientTokenWillExpire:(nonnull TwilioSyncClient *)clientParameters
client |
The sync client. |
|---|
Discussion
Called when the client’s token will expire soon.
In response, your delegate should generate a new token and call
syncClient:updateToken:completion: as soon as possible.
Declared In
TWSSyncClient.h