Skip to content

Conversation

@gawronA
Copy link

@gawronA gawronA commented Mar 29, 2023

Hello, this PR is my feature proposition.

Currently this library is not able to detect lost connection with Binance Websocket API.

I have exposed pingInterval attribute of OkHttpClient as optional parameter for UM/CMWebsocketClientImpl to be set by user accordingly to needs. This issues the client to send ping frames to Binance Websocket API and await pong response. When connection is lost (e.g. due to Wi-Fi/Internet disconnection), onFailureCallback will be triggered after at most pingInterval.

Please let me know if this change fits. I'm open to comments and suggestions.

@2pd
Copy link
Contributor

2pd commented Jun 8, 2023

Thanks for the PR, we will have a review

@0xenAlpha
Copy link

any update on this we're having the same issue.

@panpeter
Copy link

Any chance someone from the Binance team could review and merge it soon? 🙏

@lythanh24
Copy link

Any change on this? please review it soon, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants