Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCookieLab committed Mar 14, 2018
1 parent 27469df commit d1f70a4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 46 deletions.

This file was deleted.

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/java/com/cf/example/PoloniexWSSClientExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.cf.client.WSSClient;
import com.cf.client.poloniex.wss.model.PoloniexWSSSubscription;
import com.cf.client.wss.handler.LoggerMessageHandler;
import com.cf.client.wss.handler.OrderBookMessageHandler;
import com.cf.client.wss.handler.TickerMessageHandler;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down Expand Up @@ -34,7 +33,7 @@ public void run() throws Exception
{
try (WSSClient wssClient = new WSSClient(ENDPOINT_URL))
{
wssClient.addSubscription(PoloniexWSSSubscription.USDT_ETH, new OrderBookMessageHandler());
wssClient.addSubscription(PoloniexWSSSubscription.USDT_ETH, new LoggerMessageHandler());
wssClient.addSubscription(PoloniexWSSSubscription.TICKER, new TickerMessageHandler());
wssClient.run(20000);
}
Expand Down

0 comments on commit d1f70a4

Please sign in to comment.