|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
).innerHTML += `<span style="color: ${color}">${text}</span><br>`;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const socket = new WebSocket("ws://" + location.host + "/echo");
|
|
|
|
|
const socket = new WebSocket("wss://" + location.host + "/echo/");
|
|
|
|
|
socket.addEventListener("message", (ev) => {
|
|
|
|
|
log("<<< " + ev.data, "blue");
|
|
|
|
|
});
|
|
|
|
|