File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/**
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.
33 * Supported bindings: HTTP / HTTPS / WebSockets
44 *
55 * After adding the following <script> tag to your HTML page:
66 * <script src="https://cdn.jsdelivr.net/npm/@node-wot/browser-bundle@latest/dist/wot-bundle.min.js" defer></script>
77 *
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.
99 * 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();
1212 *
1313 **/
1414
@@ -175,9 +175,9 @@ function updateProperties() {
175175 } ) ;
176176}
177177
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 ) ;
181181window . onload = ( ) => {
182182 // process passed URL
183183 let $_GET = location . search
Original file line number Diff line number Diff line change 11/**
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.
33 * Supported bindings: HTTP / HTTPS / WebSockets
44 *
55 * After adding the following <script> tag to your HTML page:
66 * <script src="https://cdn.jsdelivr.net/npm/@node-wot/browser-bundle@latest/dist/wot-bundle.min.js" defer></script>
77 *
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.
99 * 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();
1212 *
1313 **/
1414
@@ -163,9 +163,9 @@ function removeSchemaEditor() {
163163 }
164164}
165165
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 ) ;
169169document . getElementById ( "fetch" ) . onclick = ( ) => {
170170 get_td ( document . getElementById ( "td_addr" ) . value ) ;
171171} ;
Original file line number Diff line number Diff line change 11/**
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.
33 * Supported bindings: HTTP / HTTPS / WebSockets
44 *
55 * After adding the following <script> tag to your HTML page:
66 * <script src="https://cdn.jsdelivr.net/npm/@node-wot/browser-bundle@latest/dist/wot-bundle.min.js" defer></script>
77 *
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.
99 * 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();
1212 *
1313 **/
1414
@@ -67,7 +67,7 @@ function showProperties(thing) {
6767 } , UPDATE_PERIOD ) ;
6868}
6969
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 ) ;
7373get_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
1616< script src= " https://cdn.jsdelivr.net/npm/@node-wot/browser-bundle@latest/dist/wot-bundle.min.js" >< / script>
1717```
1818
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:
2020
2121``` 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 ();
2424```
2525
2626## Using node-wot browser bundle library in web frameworks (e.g., Angular)
You can’t perform that action at this time.
0 commit comments