SpaceAlarm,
var list = {};
socket.on("lists", function(data) {
console.log(data.text);
let length = data.text.length;
for (var i = 0; i < length; i++) {
let login = data.text[i].nickname;
if (!list[login]) {
let tbody = document.querySelector("#num");
let tr = tbody.insertRow(tbody.rows.length);
tr.insertAdjacentHTML("beforeEnd", '<td>User: '+i+'</td><td>' + login + '</td>');
list[login] = tr;
}
}
});