Added a new constructor here. Mainly I wanted to expose the connectRetries and time between them. For my purposes i need e.g. infinite connection retries.