better client for friends

This commit is contained in:
2026-07-24 10:18:30 +10:00
parent 6598162680
commit 0d3c76086b
7 changed files with 127 additions and 31 deletions

View File

@@ -107,7 +107,7 @@ document.addEventListener('DOMContentLoaded', function() {
}
// create a websocket
socket = new WebSocket("ws://" + document.location.hostname + ":" + document.location.port + "/friends/ws");
socket = new WebSocket("wss://" + document.location.hostname + ":" + document.location.port + "/friends/ws");
socket.onopen = function() {
console.log("connected to server!");
@@ -286,4 +286,4 @@ function sendMessage() {
renderMessage(sentMessage);
textarea.value = "";
}
}