altangent / ccxws

WebSocket client for 38 cryptocurrency exchanges
MIT License
619 stars 186 forks source link

Add retryTimeoutMs param #318

Open JamesGDiaz opened 2 years ago

JamesGDiaz commented 2 years ago

Changes for #316

This will allow to reconnect the websocket after its connection is lost. Currently there's a hardcoded value of _retryTimeoutMs=15000ms, this value is kept as a default, but now, classes that inherit BasicClient can get a retryTimeoutMs parameter that will be used in SmartWss.

Currently only tested on DigifinexClient