pubnub/pubnub-api — comment on commit e4d1420367f3c0fbae6d8343dc02942dcbd70be6
File: flash/PubNub.as line 51
By sunild:

Tried this out today, it generates the following sequence of url's (assuming the random # starts at 5):

ps5, ps6, ps7, ps8, ps9, ps1, ps1, ps2, ....

Note that "ps1" is used twice. My colleagues say that there is no channel 0 (no "ps0"), and that there are really only 9 channels (ps1 thru ps9). If that's correct, this can be fixed by changing where "ori" gets incremented:

'pubsub', 'ps' + (++ori < 10 ? ori : ori=1)