WebSocketClient client = clientFactory.newClient(getAddressOfNode("1"),
new WebSocketActionListener.Adapter() {
@Override
public void onConnect(WebSocketClient client) throws IOException {
logger.info("sending subscribe command, channel = {}", client.channel());
subscribe.send(client);
logger.info("sending publish command (to ourselves), channel = {}", client.channel());
publish.send(client);
}