144145146147148149150151152153154
public void onMessage(final Message msg) { if (pushService.isConnected(pushChannel)) pushService.publish(pushChannel, msg); else chatRoom.removeListener(this); } }); /* * render chat history
165166167168169170171172173174175
public void onMessage(final Message msg) { if (pushServiceRef.get().isConnected(pushNode)) pushServiceRef.get().publish(pushNode, msg); else chatRoom.removeListener(this); } }); /* * render chat history