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 })