-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
1. Reconnection support
It generally comes with following parameters
- Reconnect Interval
- The number of milliseconds to delay before attempting to reconnect.
- Default: 2000
- Max Reconnect Interval
- The maximum number of milliseconds to delay a reconnection attempt.
- Default: 30000
- maxAttempts;
- The maximum number of reconnection attempts that will be made before giving up. If null,
- will be continue to be made forever.
- attemptsMade;
- Keeps on incrementing after each reconnect till it reaches max attempts
- Need to reset it to 0, once connected to server.
You can refer reconnection file here https://github.com/sacOO7/socketcluster-client-java/blob/master/src/main/java/io/github/sac/ReconnectStrategy.java.
- We probably don't need reconnection decay.
- If code has custom disconnect() call, then need to ignore reconnection functionality. Since connection is supposed to get closed. ( We can discuss about this !!!)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request