@Override
public void onError(Throwable t) {
logger.error(t.getMessage(), t);
}
});
client.connect().await(1000, TimeUnit.MILLISECONDS);
Thread.sleep(1000);
logger.info("closing bulk client");
client.send(new CloseWebSocketFrame());
Thread.sleep(1000);
client.disconnect();