This commit is contained in:
2026-08-04 06:17:32 +03:00
parent 53f9819d40
commit 2028db671f
19 changed files with 159 additions and 45 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
async function init() {
try {
const epPort = new URLSearchParams(window.location.search).get("epPort");
if (!epPort)
throw new Error("Open this example with the application-defined epPort query parameter.");
connection = await wh.get(`ep://${window.location.hostname}`, {
connection = await wh.get(`ep://${window.location.hostname}:${epPort}`, {
autoReconnect: true
});