Skip to content

As a library user I want to handle autoreconnect of a connection #41

@l4mby

Description

@l4mby

The connection should be able to autoreconnect by default and the user should be able to customize the delay between reconnection attempts

const connection = await environment.createConnection({ 
           reconnect: 3000,
           initialReconnectDelay: 5000,
           maxReconnectDelay: 10000,
           reconnectLimit: 10

          // or ...
          
          reconnect: 3000  // delay between reconnection attempts
})

The user can also disable reconnection completely

const connection = await environment.createConnection({ reconnect: false })

Metadata

Metadata

Assignees

Labels

todoNext feature to implement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions