You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this library hasn't been updated in a while but it seems to be working somewhat, I am having a problem receiving the callback from the ticker though... It only seems to receive the very first callback then nothing after that.
Here's some test code:
`
coinfloor.connect(URI.create("wss://api.coinfloor.co.uk/"));
Callback<Coinfloor.TickerInfo> callback = new Callback<Coinfloor.TickerInfo>() {
public void operationCompleted(TickerInfo result) {
System.out.println(result.toString());
}
public void operationFailed(Exception exception) {
System.out.println("failed");
}
};
coinfloor.watchTickerAsync(XBT, GBP, true, callback);
`
As I would expect everytime the websocket pings out the updated ticker info the operationCompleted would print out the new ticker info but it doesn't it only prints the very first one then nothing after?
Maybe I am being stupid and missing something (probably likely) any ideas?
Activity
whitslack commentedon Jun 28, 2019
That callback is only to receive the reply to the
WatchTickercommand. You need to subclass theCoinfloorclass and override thetickerChangedmethod.