From 5419ea4ca0d267481834102fe51f8ca0c706486b Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 3 Aug 2012 08:41:15 -0700 Subject: [PATCH] Documentation: What's in a message --- webclient/rc.html | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- 2.44.1