X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=webdemo%2Findex.html;h=fb7ab390131cace68396670d3bb05096399259c9;hb=15475aee82ea3a5330a47a430e8dbbfdf2a49419;hp=e6e1795cd76048f2440db33b2471f996222a025d;hpb=97c5fc86f9fbab5df74879b9b2a705dbb8dcba63;p=loctrkd.git diff --git a/webdemo/index.html b/webdemo/index.html index e6e1795..fb7ab39 100644 --- a/webdemo/index.html +++ b/webdemo/index.html @@ -91,7 +91,7 @@ locations.shift(); } console.log("new marker list " + JSON.stringify(locations)); - tstamp.innerHTML = msg.devtime; + tstamp.innerHTML = msg.timestamp; var lonLat; // TODO: figure how to have multiple markers and/or track for (const loc of locations) { @@ -155,8 +155,8 @@ var msg = { imei: Array.from(imeis), type: "subscribe", - date: Date.now(), - backlog: 1 + timestamp: Date.now(), + backlog: maxmarkers }; console.log("sending" + JSON.stringify(msg)); ws.send(JSON.stringify(msg));