Skip to content

Commit a8adb76

Browse files
author
gcohen
committed
added getTimetoken, which populates from last received subscribe timetoken response.
1 parent 5cac5a4 commit a8adb76

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎java/srcPubnubApi/com/pubnub/api/PubnubCore.java‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,6 +2034,15 @@ public String getDomain() {
20342034
return this.DOMAIN;
20352035
}
20362036

2037+
/**
2038+
* This method returns last received timetoken. Return 0 if not set.
2039+
*
2040+
* @return timetoken. 0 if timetoken not set
2041+
*/
2042+
public String getTimetoken() {
2043+
return this._timetoken;
2044+
}
2045+
20372046
/**
20382047
* This method returns auth key. Return null if not set
20392048
*

0 commit comments

Comments
 (0)