public Integer getLastMessageNumber() { return ChatService.getLastMessageNumber(); }
public Integer publish(String msg) { ChatService.publish(msg); return 1; }
public List<String> getMessagesSince(int last, int howMany) { // System.out.println("requesting " + howMany + " msgs, starting from " + lastMsg); List<String> msgs = ChatService.getMessagesSince(last, howMany); // System.out.println("Got " + msgs.size() + " msgs, will resume from " + lastMsg); return msgs; }