@mml-io/networked-dom-web-client 0.18.1 → 0.19.0
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/README.md +14 -0
- package/build/index.js +1204 -218
- package/build/index.js.map +4 -4
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Networked DOM Web Client
|
|
2
|
+
|
|
3
|
+
This package contains a basic standalone client as a single JavaScript bundle that can be included in the source of a webpage to connect to a `NetworkedDOM` document over a WebSocket and present it on the page.
|
|
4
|
+
|
|
5
|
+
# Usage
|
|
6
|
+
|
|
7
|
+
The query parameters of the `<script/>` tag that the script is included with can be used to configure a remote address of a document to load into the page.
|
|
8
|
+
|
|
9
|
+
## Example Usage
|
|
10
|
+
E.g.
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<script src="/path/to/this/package/build/index.js?url=wss://example.com/some-networked-dom-websocket"></script>
|
|
14
|
+
```
|