SERVER_PORT = dynamicPort.getNumber();
HttpClient http = new HttpClient();
http.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);
client = new BayeuxClient(http, new Address("localhost", SERVER_PORT), "/ajax/cometd");
http.start();
//need to start the client before you can add subscriptions
client.start();
}
@Override