-
Notifications
You must be signed in to change notification settings - Fork 37
Websockets don't reconnect #28
Comments
pull requests are welcome, we're open to suggestions ;) Websockets receive general critics as current Jetty's version is not supported for Android, so any help is appreciated, thanks |
Mmmhmm, I'll think about it ... today I came about a WebSocketClient-Replacement which used something more common ... Jetty is like shooting big guns on sparrows :) |
In this state I wouldn't run it 24/7 ... I guess, I'll fork and try to switch to a lightweight implementation. There is one which also work on android and only uses basic java network sockets. |
@shufps absolutely agree with the statement that this websocket implementation is a problem. From my experience - it works only wrapped with forced re-connection. That would allow to play with other implementations and choose what would be the best |
Perhaps we can make a deal ... I fork and change the implementation to something lightweight and you can modulize it afterwards? |
@shufps yes sure. We are open to any kind of conribution |
I did my changes into a fork ... I'm not very familiar with git and I guess a pull-request wouldn't be a wise idea sind I changed a couple of things. You can look into the repo here: https://github.com/shufps/java-binance-api (Please ignore the updates on build.gradle ... I never used it before and was a bit struggeling 😂 ) I used this websocket library: https://github.com/TooTallNate/Java-WebSocket It is supposed to work with Android 4. I'll test it - it seems to be working - but if I know more about stability, I'll post here :) |
@shufps thanks for contribution, |
I think you misunderstood ... I don't want my repository to be listed in your Readme because the fork only exists for you that you can have a look and decide whether you want to integrate the changes in your repo or not :) I've no interest in providing an alternative version because I won't ever develop them further - just wanted to contribute another websocket implementation which will - hopefully - find it's way into your repository :) I only didn't submit a pull request because the new version wouldn't be totally compatible to your version. For instance... Session is now WebSocketClient and the BinanceWebSocketAdapter-Classes are now interfaces which have to implement unused functions too. That's not a big overhead because there are a total of 4 functions, but it wouldn't be compatible out of the box. I hope you understood :) I'm not one of these "I fork your project and then do everything better afterwards" ... Just wanted to contribute in hope you can get rid of Jetty :) |
Fix missing Fill or Kill in TimeInForce.
Websocket-Lister do not reconnect after they have been disconnected (from binance or when disconnected by 24h DSL-disconnect)
It would be nice, to automatically reconnect Websocket-Listeners.
The text was updated successfully, but these errors were encountered: