Skip to content

Reconnection support :) #9

@sacOO7

Description

@sacOO7

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

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions