2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-05-06 11:32:59 +00:00
2024-06-09 23:24:21 +03:00

21 lines
421 B
JavaScript

async function init() {
try {
connection = await wh.get(`iip://${window.location.hostname}`, {
autoReconnect: true
});
window.demo = await connection.get("sys/demo");
await app.setData(connection);
console.log(connection);
}
catch (ex)
{
alert(ex);
}
}
const FORMAT_CONNECTION_STATUS = (x) => ["Offline", "Connecting...", "Online"][x];