From 3400b036bd3eca87ff51825b91038753d2711ecc Mon Sep 17 00:00:00 2001 From: "kam (from the studio)" Date: Fri, 22 Apr 2022 15:34:51 +0200 Subject: [PATCH] test wss --- app.py | 2 +- templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 316ded7..15001d2 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/templates/index.html b/templates/index.html index ea0292d..ff88074 100644 --- a/templates/index.html +++ b/templates/index.html @@ -18,7 +18,7 @@ ).innerHTML += `${text}
`; }; - const socket = new WebSocket("ws://" + location.host + "/echo"); + const socket = new WebSocket("wss://" + location.host + "/echo/"); socket.addEventListener("message", (ev) => { log("<<< " + ev.data, "blue"); });