add children to relation map

This commit is contained in:
azivner
2018-10-21 10:26:14 +02:00
parent 627e5e0edb
commit 6559e6c25b
5 changed files with 229 additions and 162 deletions

View File

@@ -41,7 +41,7 @@ function handleMessage(event) {
lastPingTs = new Date().getTime();
if (message.data.length > 0) {
console.log(utils.now(), "Sync data: ", message.data);
console.debug(utils.now(), "Sync data: ", message.data);
lastSyncId = message.data[message.data.length - 1].id;
}
@@ -67,7 +67,7 @@ function connectWebSocket() {
// use wss for secure messaging
const ws = new WebSocket(protocol + "://" + location.host);
ws.onopen = event => console.log(utils.now(), "Connected to server with WebSocket");
ws.onopen = event => console.debug(utils.now(), "Connected to server with WebSocket");
ws.onmessage = handleMessage;
ws.onclose = function(){
// Try to reconnect in 5 seconds