Skip to content

The reconnect mechanism does not appear to be working. #96

@rambollwong

Description

@rambollwong

Versions in use:

github.com/binance/binance-connector-go/clients/derivativestradingusdsfutures v1.3.0
github.com/binance/binance-connector-go/clients/spot v1.3.0
github.com/binance/binance-connector-go/common v1.2.0

Initialize the client in the following way:

perpCli := bcf.NewBinanceDerivativesTradingUsdsFuturesClient(
		bcf.WithRestAPI(common.NewConfigurationRestAPI(
			common.WithBasePath(common.DerivativesTradingUsdsFuturesRestApiProdUrl),
			common.WithApiKey(apiKey),
			common.WithApiSecret(secretKey)),
		),
		bcf.WithWebsocketStreams(common.NewConfigurationWebsocketStreams(
			common.WithWsStreamsBasePath(common.DerivativesTradingUsdsFuturesWebsocketStreamsProdUrl),
			common.WithWsStreamsReconnectDelay(time.Second),
			common.WithWsStreamsMode(common.POOL),
			common.WithWsStreamsPoolSize(poolSize)),
		),
	)

However, after a temporary network interruption on my side, all subscriptions became invalid. It appears that the reconnection mechanism is not working. We hope this issue can be resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions