@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);
}
@Override
public void onMessage(WebSocketClient client, WebSocketFrame frame) {
logger.info("frame received: " + frame);