Skip to content

Commit

Permalink
Merge pull request bitrich-info#450 from mdvx/patch-7
Browse files Browse the repository at this point in the history
[Poloniex2] Add support for Connection State
  • Loading branch information
badgerwithagun authored Nov 26, 2019
2 parents db644e7 + adbc864 commit ef9c047
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import info.bitrich.xchangestream.core.StreamingMarketDataService;
import info.bitrich.xchangestream.service.netty.StreamingObjectMapperHelper;
import io.reactivex.Completable;
import io.reactivex.Observable;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.currency.Currency;
import org.knowm.xchange.currency.CurrencyPair;
Expand Down Expand Up @@ -93,4 +94,13 @@ public boolean isAlive() {

@Override
public void useCompressedMessages(boolean compressedMessages) { streamingService.useCompressedMessages(compressedMessages); }

@Override
public Observable<Object> connectionSuccess() {
return streamingService.subscribeConnectionSuccess();
}
@Override
public Observable<Throwable> reconnectFailure() {
return streamingService.subscribeReconnectFailure();
}
}

0 comments on commit ef9c047

Please sign in to comment.