rcreceivemessages() modifies the message. The fetch loop needs
to extract the final timestamp for since= feedback before it is
modified.
if (rtxt != null) {
var messages = JSON.parse(rtxt);
if (messages != null) {
if (rtxt != null) {
var messages = JSON.parse(rtxt);
if (messages != null) {
- rcreceivemessages(server, messages);
delay = 40;
if (messages.length >= 1 && "Time" in messages[messages.length-1]) {
since[server] = messages[messages.length-1].Time;
}
delay = 40;
if (messages.length >= 1 && "Time" in messages[messages.length-1]) {
since[server] = messages[messages.length-1].Time;
}
+ rcreceivemessages(server, messages);