The standard dizmoViewer software includes sharing one or more dizmos, through a Pad dizmo, with other devices and/or users on a local network. Multiple sessions can be run in parallel, allowing any combination of Pad, dizmos and device/users connections. Most dizmos can be shared through a Pad.
Only persisted data of a dizmo is replicated over dizmoLive. This means, the state or any other information of a dizmo is only shared across dizmoLive, when it was stored in the dizmo data tree.
Assume your dizmo has an inputfield where users can enter data. By default, the content of the inputfield will not be shared across dizmoLive, since only persistent data in the dizmo data tree is replicated over dizmoLive.
There are three ways to accept incoming dizmoLive connection requests:
You can set these properties with:
viewer.setAttribute("settings/linkacceptmode","askuser"); viewer.setAttribute("settings/linkacceptmode","silentlive"); viewer.setAttribute("settings/linkacceptmode","donotdisturb");
you can also get the current mode with:
For a list of all dizmoViewer Instances, that a dizmoLive connection can be opened to, use the new
var remotehosts = viewer.getRemoteHosts();
This will return an array of identifiers and hostnames/ip-adresses. Use one of those identifiers to get more details about that remotehost:
var remotehost = viewer.getRemoteHostById(identifier);
For each dizmo, you can get more information about an active dizmoLive connection using:
var connectioninfo = dizmo.getRemoteHost();
If there is an active connection, it returns the time when the connection was started and the username.
You can also get more information about an active connection for each dizmo with:
This will return the direction (incoming or outgoing) and the identifier of the remote host.
To react to live connections which are added or removed, use these two callbacks:
var subscrId = dizmo.onRemoteHostConnected(callback); var subscrId = dizmo.onRemoteHostDisconnected(callback);
Unsubscribe from both subscriptions with: