Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

ChannelDatabin

ChannelDatabin
is an option to ChannelListen that specifies a databin in which to store incoming messages.

DetailsDetails

  • A channel databin persists even after the listener that provided data is removed.
  • The following settings can be used:
  • Automaticrecord received data in a new databin
    binrecord data in the specified databin
    Nonedo not record data in a databin
  • The databin created with listener=ChannelListen[,ChannelDatabin->Automatic] can be retrieved with listener["Databin"].

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Start listening on a channel, storing incoming messages in a new databin:

In[1]:=
Click for copyable input
Out[1]=

Send a few message to the channel:

In[2]:=
Click for copyable input
Out[2]=

The databin associated with the channel:

In[3]:=
Click for copyable input
Out[3]=

Messages stored in the databin:

In[4]:=
Click for copyable input
Out[4]=

Databin entries persist after the listener is removed:

In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
Out[6]=
Introduced in 2016
(11.0)