output.printHeader("This is ping example", Style.title);
output.printHeader("Ping to: " + other, Style.info);
output.printHeader("You need to open the pong example page in order to run the example", Style.important);
// WHEN LOGGED IN, SEND THE FIRST PING
session.addSessionStateChangedHandler(true, new StateChangedHandler() {
@Override
public void onStateChanged(final StateChangedEvent event) {
if (event.is(SessionStates.ready)) {
sendPing();
}