Dynamic Cloud/Desktop Integration
In your Wolfram Cloud account, or any other remote Wolfram System, set up a listener that evaluates incoming messages and sends the results back to a specified channel.
In[1]:=
![Click for copyable input](assets.en/dynamic-cloud-desktop-integration/In_10.png)
ChannelListen["remote",
ChannelSend[#Message["ReplyTo"], #Message["Evaluate"]] &]
![](assets.en/dynamic-cloud-desktop-integration/O_9.png)
Set up a receiving channel on a desktop system.
In[1]:=
![Click for copyable input](assets.en/dynamic-cloud-desktop-integration/In_11.png)
listener = ChannelListen["local"]
Out[1]=
![](assets.en/dynamic-cloud-desktop-integration/O_10.png)
In[2]:=
![Click for copyable input](assets.en/dynamic-cloud-desktop-integration/In_12.png)
Dynamic[listener["Message"]]
Out[2]=
![](assets.en/dynamic-cloud-desktop-integration/O_11.png)
Send a command to the remote evaluator and notice the result in the dynamic output.
In[3]:=
![Click for copyable input](assets.en/dynamic-cloud-desktop-integration/In_13.png)
ChannelSend["remote", <|"Evaluate" :> {$OperatingSystem, $MachineID},
"ReplyTo" -> "local"|>]
Out[3]=
![](assets.en/dynamic-cloud-desktop-integration/O_12.png)
Verify that the result is coming from a different machine.
In[4]:=
![Click for copyable input](assets.en/dynamic-cloud-desktop-integration/In_14.png)
{$OperatingSystem, $MachineID}
Out[4]=
![](assets.en/dynamic-cloud-desktop-integration/O_13.png)