@nil-/xit 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/bundler.js +201 -201
- package/assets/index.html +1 -1
- package/assets/index.js +1 -1
- package/package.json +1 -1
package/assets/index.html
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import { create_component } from "/assets/index.js";
|
|
22
22
|
const params = new URLSearchParams(location.search);
|
|
23
23
|
const destroy = await create_component(document.getElementById("xit"), {
|
|
24
|
-
host:
|
|
24
|
+
host: "/ws",
|
|
25
25
|
frame: params.get("frame") ?? "index",
|
|
26
26
|
tag: params.get("tag"),
|
|
27
27
|
cdn_url: "https://unpkg.com"
|
package/assets/index.js
CHANGED
|
@@ -32,7 +32,7 @@ class ft {
|
|
|
32
32
|
// non-blocking (run is blocking in c++)
|
|
33
33
|
// calling it again should not do anything
|
|
34
34
|
start() {
|
|
35
|
-
u(this, g) == null && u(this, v) !== 1 && u(this, v) !== 3 && (w(this, g, new WebSocket(
|
|
35
|
+
u(this, g) == null && u(this, v) !== 1 && u(this, v) !== 3 && (w(this, g, new WebSocket(u(this, x))), u(this, g).binaryType = "arraybuffer", u(this, g).onopen = () => {
|
|
36
36
|
u(this, v) == 3 ? this.stop() : (w(this, v, 1), u(this, rt) && u(this, rt).call(this, u(this, x)));
|
|
37
37
|
}, u(this, g).onclose = () => {
|
|
38
38
|
u(this, v) === 1 && (u(this, ot) && u(this, ot).call(this, u(this, x)), w(this, v, 2), wt(this, _t, Ft).call(this));
|