new ChatManagerEventsSupervisor(roomManager, display);
new RoomManagerEventsSupervisor(roomManager, display);
// Because is a RoomManager, we know this MUST be a room
final Room room = (Room) roomManager.open(roomUri);
room.addMessageReceivedHandler(new MessageHandler() {
@Override
public void onMessage(final MessageEvent event) {
final Message message = event.getMessage();
display.print(("RECEIVED: " + message.getBody()), Style.received);
pongs++;