Permalink
Browse files

Setting up some default timeout values. Channel set to rand_seq with …

…noise keys.
  • Loading branch information...
1 parent d9d4ed3 commit eaff88e83d7ba653cca5336e56349d160d28bda4 geremy committed Feb 21, 2013
Showing with 18 additions and 9 deletions.
  1. +5 −2 flash/3.4/src/PubNubFlexExample.mxml
  2. +13 −7 flash/3.4/src/com/pubnub/Settings.as
@@ -29,7 +29,7 @@
[Bindable]
//public var channel:String = 'a,b';
- public var channel:String = 'noise';
+ public var channel:String = 'rand_seq';
[Bindable]
@@ -187,11 +187,14 @@
if (ExternalInterface.available) {
ExternalInterface.call(functionName, rest);
}
- consoleArea.appendText((consoleCounter++) +'. '+ rest + '\n');
+
if (consoleCounter == 10) {
consoleArea.text = "";
consoleCounter = 0;
}
+
+ consoleArea.appendText((consoleCounter++) +'. '+ rest + '\n');
+
}
private var startPublishTime:Number;
@@ -14,18 +14,24 @@ package com.pubnub {
// ie, 100 times, every 3 seconds for a network connection
// time in millseconds to wait for web server to return a response. DO NOT CHANGE unless requested by support
- public static const OPERATION_TIMEOUT:uint = 5000;
+ public static const OPERATION_TIMEOUT:uint = 10000;
- // for wait a response of a ping operation with [PING_OPERATION_URL], ms
- public static const PING_OPERATION_TIMEOUT:uint = 5000;
+ /////////////////////////////////////////////////////////////////////////////
- // check for network down every [PING_OPERATION_INTERVAL],ms.
- public static const PING_OPERATION_INTERVAL:uint = 1000;
+ // First level net test before subscribe is on, Using below POT as timeout
+ // Do not exceed 15000 !!!!
+
+ public static const PING_OPERATION_INTERVAL:uint = 15000;
+
+ // Timeout, in ms, for above POI
+ public static const PING_OPERATION_TIMEOUT:uint = 10000;
+
+ ////////////////////////////////////////////////////////////////////////////
- // check for network down every [PING_OPERATION_RETRY_INTERVAL],ms when the network disabled
+ // When in subscribe recovery mode, try to hit POU endpoint every PORI ms
public static const PING_OPERATION_RETRY_INTERVAL:uint = 1000;
- // chck a network status uses URL
+ // URL Endpoint for recovery mode net detection
public static const PING_OPERATION_URL:String = 'http://pubsub.pubnub.com/time/0';
}
}

0 comments on commit eaff88e

Please sign in to comment.