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]:=
ChannelListen["remote",
ChannelSend[#Message["ReplyTo"], #Message["Evaluate"]] &]
Set up a receiving channel on a desktop system.
In[1]:=
listener = ChannelListen["local"]
Out[1]=
In[2]:=
Dynamic[listener["Message"]]
Out[2]=
Send a command to the remote evaluator and notice the result in the dynamic output.
In[3]:=
ChannelSend["remote", <|"Evaluate" :> {$OperatingSystem, $MachineID},
"ReplyTo" -> "local"|>]
Out[3]=
Verify that the result is coming from a different machine.
In[4]:=
{$OperatingSystem, $MachineID}
Out[4]=