-
-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
Description
Awesome Library.
I was taking a look at the re-connection handler and noticed it just takes a static delay before attempting to reconnect.
I usually like to use some form of re-connection strategy to control how a re-connection occurs for example an Exponential Back-off.
Would this be a suitable feature addition?
To keep the module size down the constructor could take a function:
new Sockette(..., {
reconnection: (attempts, maxAttempts) => Number
});
andrew--r