This commit is contained in:
parent
b2a88d9a78
commit
239341c032
@ -139,7 +139,7 @@ index_html = """
|
|||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
let url = (window.location.protocol == 'http' ? 'ws://': 'ws:///') + window.location.host + "/ws"
|
let url = (window.location.protocol == 'http' ? 'ws://': 'wss://') + window.location.host + "/ws"
|
||||||
const ws = new WebSocket(url);
|
const ws = new WebSocket(url);
|
||||||
const messagesDiv = document.getElementById("messages");
|
const messagesDiv = document.getElementById("messages");
|
||||||
ws.onmessage = (event) => {
|
ws.onmessage = (event) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user