Skip to content

Commit 19fa758

Browse files
sujithsujith
authored andcommitted
updated binary, readme and examples
1 parent 4da9e55 commit 19fa758

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

sample/src/Examples.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)