File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Kite Connect is a set of REST-like APIs that expose many capabilities required t
1212##Usage
1313- [ Download jar file] ( https://github.com/rainmattertech/kiteconnectjava/raw/master/dist/kiteconnectjava.jar ) and include it in your build path.
1414
15- - Include com.rainmatter.kiteconnect into build path from maven. Use version 1.4.2
15+ - Include com.rainmatter.kiteconnect into build path from maven. Use version 1.4.3
1616
1717## API usage
1818``` java
Original file line number Diff line number Diff line change @@ -350,6 +350,16 @@ public void onTick(ArrayList<Tick> ticks) {
350350 }
351351 });
352352
353+
354+ /** for reconnection of ticker when there is abrupt network disconnection, use the following code
355+ by default tryReconnection is set to false */
356+ tickerProvider .setTryReconnection (true );
357+ //minimum value must be 5 for time interval for reconnection
358+ tickerProvider .setTimeIntervalForReconnection (5 );
359+ //set number to times ticker can try reconnection, for infinite retries use -1
360+ tickerProvider .setMaxRetries (10 );
361+
362+
353363 /** connects to com.rainmatter.ticker server for getting live quotes*/
354364 tickerProvider .connect ();
355365
You can’t perform that action at this time.
0 commit comments