Wolfram Language

Channel Framework

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
ChannelListen["remote", ChannelSend[#Message["ReplyTo"], #Message["Evaluate"]] &]

Set up a receiving channel on a desktop system.

In[1]:=
Click for copyable input
listener = ChannelListen["local"]
Out[1]=
In[2]:=
Click for copyable input
Dynamic[listener["Message"]]
Out[2]=

Send a command to the remote evaluator and notice the result in the dynamic output.

In[3]:=
Click for copyable input
ChannelSend["remote", <|"Evaluate" :> {$OperatingSystem, $MachineID}, "ReplyTo" -> "local"|>]
Out[3]=

Verify that the result is coming from a different machine.

In[4]:=
Click for copyable input
{$OperatingSystem, $MachineID}
Out[4]=

Related Examples

de es fr ja ko pt-br ru zh