Implement session display
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user