String messageName = header.get("name").getAsString();
// System.out.println("Received [" + messageName + "] message on channel [" + channel + "].");
for (MessageListener listener : listeners) {
if (MessagingConstants.KEEP_ALIVE_REPLY.equalsIgnoreCase(messageName)){
String pongId = payload.get("keep_alive_id").getAsString();
listener.handle(new KeepAliveReply(pongId));
}
}
}
}
} else if (channel.equalsIgnoreCase(MessagingConstants.FROM_USERS_CHANNEL)) {