March 2018
Beginner to intermediate
410 pages
10h 40m
English
The IoT Gateway includes a mechanism to push information to connected web clients. Pages that accept information pushed to them, should include the Events.js JavaScript file in a JavaScript metadata reference. For example:
JavaScript: /Events.js
Each such page will include JavaScript that creates a TabID and registers itself with the server-side ClientEvents class, defined in Waher.IoTGateway. The ClientEvents class can then be used to check which tabs are registered with it, and for which resources. It can also be used to push data to the page. Methods available are:
|
Method |
Description |
|
GetOpenLocations() |
Returns an array of locations (relative URLs) currently being viewed. |
|
GetTabIDsForLocation() ... |
Read now
Unlock full access