Implement session display

This commit is contained in:
Kai Vogelgesang
2020-04-17 02:18:24 +02:00
parent 0f23259e04
commit ee708e9127
3 changed files with 12 additions and 4 deletions

View File

@@ -6,4 +6,8 @@ ws.onmessage = function(event) {
const msg = JSON.parse(event.data);
console.log(msg);
if (msg.hasOwnProperty('session')) {
document.getElementById('current_session').innerText = msg.session;
}
};