mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-09-08 10:10:49 +00:00
Port
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user