master
km0 3 years ago
parent 50a3ff9364
commit 3400b036bd

@ -1,7 +1,7 @@
import os
import prefix
from flask import Flask, render_template
from flask_sock import Sock
from . import prefix
app = Flask(__name__, )
sock = Sock(app)

@ -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");
});

Loading…
Cancel
Save