Skip to content

Callbacks not working? #2

@innsternet

Description

@innsternet

Hello guys,

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?

Thanks

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