diff --git a/examples/Iwc/README.md b/examples/Iwc/README.md index 1855213e..3f9eb297 100644 --- a/examples/Iwc/README.md +++ b/examples/Iwc/README.md @@ -27,6 +27,19 @@ it will be instantly shared with all the other collaborators. ``` +You may want to get the created DUI client (you must not create two DUI/IWC clients!!), +or set an IwcHandler. + + +```js + var duiclient = yatta.getConnector().duiclient; + function iwcHandler (intent) { + console.log("Received intent: "+JSON.stringify(intent)); + } + yatta.getConnector().setIwcHandler(iwcHandler); +``` + + Add a integer-property like this @@ -55,8 +68,6 @@ A string property can be either mutable or immutable. yatta.val('mutable_string').deleteText(0,1); // position, deletion length console.log(yatta.val('mutable_string').val() === "eXXXxt"); // true - - }) } window.onload = init diff --git a/examples/PeerJs-Json/README.md b/examples/PeerJs-Json/README.md index f14bf2ef..66d8d682 100644 --- a/examples/PeerJs-Json/README.md +++ b/examples/PeerJs-Json/README.md @@ -15,7 +15,8 @@ A working widget implementation is [IwcJson.xml](./IwcJson.xml) and the js-file The PeerJs Framework requires an API key, or you need to set up your own PeerJs server. Get an API key from the Website. -The first parameter of `createPeerJsConnector` is the options object in PeerJs. +The first parameter of `createPeerJsConnector` is forwarded as the options object in PeerJs. +Therefore, you may also specify the server/port here. ```js