new CrossbarExample(args[0], args[1]).run();
}
void run() {
WampClientBuilder builder = new WampClientBuilder();
try {
builder.witUri(url)
.withRealm(realm)
.withInfiniteReconnects()
.withCloseOnErrors(true)
.withReconnectInterval(5, TimeUnit.SECONDS);
client = builder.build();
} catch (WampError e) {
e.printStackTrace();
return;
}