USERNAMES
This commit is contained in:
@@ -10,6 +10,9 @@ ws.onmessage = function(event) {
|
||||
if (msg.hasOwnProperty('currentsession')) {
|
||||
document.getElementById('current_session').innerText = msg.currentsession;
|
||||
}
|
||||
if (msg.hasOwnProperty('username')) {
|
||||
document.getElementById('greeting').innerText = "Hello, " + msg.username + "!";
|
||||
}
|
||||
|
||||
if (msg.hasOwnProperty('allsessions')) {
|
||||
const all_sessions = document.getElementById('all_sessions');
|
||||
@@ -25,4 +28,4 @@ ws.onmessage = function(event) {
|
||||
all_sessions.appendChild(button);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user