2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-27 07:13:12 +00:00
This commit is contained in:
2021-04-19 15:51:09 +03:00
parent a08519bde8
commit f5365adec3
9 changed files with 1805 additions and 2011 deletions

View File

@ -15,7 +15,7 @@
try {
status.innerHTML = "Connecting...";
service = await wh.get("iip://localhost:8081/chat", {username, password: "1234"});
service = await wh.get("iip://localhost:8001/chat", {username, password: "1234"});
login.style.display = "none";
service.on("message", appendMessage)
.on(":title", updateTitle)
@ -26,7 +26,7 @@
service.users.forEach((x)=>appendUser(x, true));
status.innerHTML = "Online";
} catch (ex) {
status.innerHTML = "Error " + ex.toString;
status.innerHTML = "Error " + ex.toString();
}
}