Free up to 1MM monthly messages. No credit card required.
PubNub is applying a TimeToken enhancement to our web-messaging infrastructure on May 2, 2012 . If your app uses the PubNub TimeToken directly, then this article concerns you.
For the latest information please visit PubNub Help Desk and Knowledge Base.
Note that it is unusual for you to be using the TimeToken directly so this message is just a precaution.
Please feel free to ignore this announcement if you don’t use the TimeToken directly.
If you are using TimeToken directly this upgrade will need your prompt attention :
What do you need to do to keep your app running? This upgrade will likely have no affect on your app. Greater than 99% of the cases you will not need to concern yourself with this upgrade. We have already ensured your app will be compatible with all PubNub Client APIs/SDKs since version 3.0+. However, if you make use of the PubNub TimeToken directly, then you may need to apply adjustments to your usage pattern. If you don’t know what the TimeToken is then you most likely don’t need to do anything.
PubNub TimeToken Q&A
May 2nd, 2012 at 11:00pm PDT.
This upgrade will increase the PubNub TimeToken longevity by four additional digits on the left side of the TimeToken number (prepend).
The Original TimeToken was a smaller value; originally for optimal reasons. However due to low cap value, the TimeToken resets to zero every fortnight (14 days) which causes brief window of time where messages may be duplicated undesirably and only if previous messages existed in a channel’s queue before the rollover.
The new Reset Date: 03:14:07 UTC on Tuesday, 19 January 2038 – read more – http://en.wikipedia.org/wiki/Year_2038_problem However the PubNub TimeToken is a 64bit value that is ready for the new Unix Timestamp update to address the 2038 problem inherent with 32bit INT value max.
No because the TimeToken is delivered as a “STRING”.
The original TimeToken was 13 (thirteen) digit places.
The new TimeToken is 17 (seventeen) digit places.
The difference is 4 (four) digit places.
// UNARY OP is used to convert a STRING to INT + Unix TimeStamp = Math.ceil(+PubNub_TimeToken / 10000);
Convert PubNub TimeToken to a Unix Timestamp – Precaution! – This is a very large number and can only be contained by a 2-Long/Double/64bit Integer value only. Interpreting this big number into a standard 32bit int will cause bit overflow (byte wrap).
Standard Unix Timestamps (example: 1334199851) are 10 Digits. On May 2, 2012 the PubNub TimeToken will be 17 digits.
Take a look at the top trends that are the most effective in attracting customers and reducing churn, and how you can incorporate...
Comparing the major game engines: Unity vs Unreal Engine vs Corona SDK vs GameMaker Studio, including the benefits and cons of...
Sockets (aka socket programming) enable programs to send and receive data, bi-directionally, at any given moment. This tutorial...