From: Scott Worley Date: Fri, 3 Aug 2012 15:41:15 +0000 (-0700) Subject: Documentation: What's in a message X-Git-Url: http://git.scottworley.com/reliable-chat/commitdiff_plain/5419ea4ca0d267481834102fe51f8ca0c706486b?ds=sidebyside Documentation: What's in a message --- diff --git a/webclient/rc.html b/webclient/rc.html index bb99825..8094f41 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -82,6 +82,11 @@ var session = Math.random(); // For outgoing message IDs var since = {}; // server -> time: For fetch?since= var seen = {}; // seen_key -> message + // Messages have these fields: + // Time: The server timestamp of the first copy to arrive + // ID: Some unique string for deduping + // Text: The text of the message + // UI: The DOM node for this message in the UI function rcnick() { var nick = localStorage.getItem("nick");