File tree 4 files changed +24
-24
lines changed
4 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * In the browser, node wot only works in client mode with limited binding support.
2
+ * In the browser, node- wot only works in client mode with limited binding support.
3
3
* Supported bindings: HTTP / HTTPS / WebSockets
4
4
*
5
5
* After adding the following <script> tag to your HTML page:
6
6
* <script src="https://cdn.jsdelivr.net/npm/@node-wot/browser-bundle@latest/dist/wot-bundle.min.js" defer></script>
7
7
*
8
- * you can access all node-wot functionality / supported packages through the "Wot " global object.
8
+ * you can access all node-wot functionality / supported packages through the "WoT " global object.
9
9
* Examples:
10
- * var servient = new Wot .Core.Servient();
11
- * var client = new Wot .Http.HttpClient();
10
+ * var servient = new WoT .Core.Servient();
11
+ * var client = new WoT .Http.HttpClient();
12
12
*
13
13
**/
14
14
@@ -175,9 +175,9 @@ function updateProperties() {
175
175
} ) ;
176
176
}
177
177
178
- var servient = new Wot . Core . Servient ( ) ;
179
- servient . addClientFactory ( new Wot . Http . HttpClientFactory ( ) ) ;
180
- var helpers = new Wot . Core . Helpers ( servient ) ;
178
+ var servient = new WoT . Core . Servient ( ) ;
179
+ servient . addClientFactory ( new WoT . Http . HttpClientFactory ( ) ) ;
180
+ var helpers = new WoT . Core . Helpers ( servient ) ;
181
181
window . onload = ( ) => {
182
182
// process passed URL
183
183
let $_GET = location . search
Original file line number Diff line number Diff line change 1
1
/**
2
- * In the browser, node wot only works in client mode with limited binding support.
2
+ * In the browser, node- wot only works in client mode with limited binding support.
3
3
* Supported bindings: HTTP / HTTPS / WebSockets
4
4
*
5
5
* After adding the following <script> tag to your HTML page:
6
6
* <script src="https://cdn.jsdelivr.net/npm/@node-wot/browser-bundle@latest/dist/wot-bundle.min.js" defer></script>
7
7
*
8
- * you can access all node-wot functionality / supported packages through the "Wot " global object.
8
+ * you can access all node-wot functionality / supported packages through the "WoT " global object.
9
9
* Examples:
10
- * var servient = new Wot .Core.Servient();
11
- * var client = new Wot .Http.HttpClient();
10
+ * var servient = new WoT .Core.Servient();
11
+ * var client = new WoT .Http.HttpClient();
12
12
*
13
13
**/
14
14
@@ -163,9 +163,9 @@ function removeSchemaEditor() {
163
163
}
164
164
}
165
165
166
- var servient = new Wot . Core . Servient ( ) ;
167
- servient . addClientFactory ( new Wot . Http . HttpClientFactory ( ) ) ;
168
- var helpers = new Wot . Core . Helpers ( servient ) ;
166
+ var servient = new WoT . Core . Servient ( ) ;
167
+ servient . addClientFactory ( new WoT . Http . HttpClientFactory ( ) ) ;
168
+ var helpers = new WoT . Core . Helpers ( servient ) ;
169
169
document . getElementById ( "fetch" ) . onclick = ( ) => {
170
170
get_td ( document . getElementById ( "td_addr" ) . value ) ;
171
171
} ;
Original file line number Diff line number Diff line change 1
1
/**
2
- * In the browser, node wot only works in client mode with limited binding support.
2
+ * In the browser, node- wot only works in client mode with limited binding support.
3
3
* Supported bindings: HTTP / HTTPS / WebSockets
4
4
*
5
5
* After adding the following <script> tag to your HTML page:
6
6
* <script src="https://cdn.jsdelivr.net/npm/@node-wot/browser-bundle@latest/dist/wot-bundle.min.js" defer></script>
7
7
*
8
- * you can access all node-wot functionality / supported packages through the "Wot " global object.
8
+ * you can access all node-wot functionality / supported packages through the "WoT " global object.
9
9
* Examples:
10
- * var servient = new Wot .Core.Servient();
11
- * var client = new Wot .Http.HttpClient();
10
+ * var servient = new WoT .Core.Servient();
11
+ * var client = new WoT .Http.HttpClient();
12
12
*
13
13
**/
14
14
@@ -67,7 +67,7 @@ function showProperties(thing) {
67
67
} , UPDATE_PERIOD ) ;
68
68
}
69
69
70
- var servient = new Wot . Core . Servient ( ) ;
71
- servient . addClientFactory ( new Wot . Http . HttpClientFactory ( ) ) ;
72
- var helpers = new Wot . Core . Helpers ( servient ) ;
70
+ var servient = new WoT . Core . Servient ( ) ;
71
+ servient . addClientFactory ( new WoT . Http . HttpClientFactory ( ) ) ;
72
+ var helpers = new WoT . Core . Helpers ( servient ) ;
73
73
get_td ( TD_URL ) ;
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ Include the following script tag in your html
16
16
< script src= " https://cdn.jsdelivr.net/npm/@node-wot/browser-bundle@latest/dist/wot-bundle.min.js" >< / script>
17
17
```
18
18
19
- You can access all node-wot functionality through the "Wot " global object:
19
+ You can access all node-wot functionality through the "WoT " global object:
20
20
21
21
``` js
22
- var servient = new Wot .Core.Servient ();
23
- var client = new Wot .Http.HttpClient ();
22
+ var servient = new WoT .Core.Servient ();
23
+ var client = new WoT .Http.HttpClient ();
24
24
```
25
25
26
26
## Using node-wot browser bundle library in web frameworks (e.g., Angular)
You can’t perform that action at this time.
0 commit comments