WOLFRAM

ChannelObject[]

gives a new anonymous channel specification.

ChannelObject["mqtts://"]

represents a channel specified by a given URL.

ChannelObject["relpath"]

represents a channel for the currently authenticated user at a relative path.

ChannelObject["id:path"]

represents a channel for the user with the specified Wolfram ID at the given path.

ChannelObject["/abspath"]

represents a channel at an absolute path on the channel broker.

Details and Options

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

A new anonymous channel:

Out[1]=1

A named channel of the currently authenticated user:

Out[1]=1

Scope  (8)Survey of the scope of standard use cases

A new unnamed channel:

Out[1]=1

A channel in the home area of the currently authenticated user:

Out[1]=1

A named channel in a subdirectory of the home area:

Out[1]=1

A named channel of another user:

Out[1]=1

A channel referred to by the absolute path on the channel broker server:

Out[1]=1

A channel referred to by the URL:

Out[1]=1

A channel associated with a cloud object deployed for a channel receiver:

Out[1]=1
Out[2]=2

Delete the channel that was automatically created by CloudDeploy:

A channel with options:

Out[1]=1

Options  (2)Common values & functionality for each option

Permissions  (2)

Create a public channel:

Out[1]=1
Out[2]=2

Start listening on the channel and send some data:

Out[3]=3

The received message:

Out[5]=5

Other users can send data to your channel by referring to your $WolframID:

Out[6]=6

Clean up:

A channel to which you can listen and everyone can send messages:

Out[1]=1

Properties & Relations  (4)Properties of the function, and connections to other functions

ChannelObject creates a reference to the channel without creating a channel on the server:

Out[1]=1

Check that the channel does not exist:

Out[2]=2

Create a channel and verify that it exists on the server:

Out[3]=3
Out[4]=4

Delete the channel from the server:

Out[5]=5

CreateChannel returns a ChannelObject:

Out[1]=1

Clean up:

ChannelObject is used by ChannelListen, ChannelSend, and other functions:

Out[1]=1
Out[2]=2
Out[4]=4

ChannelObject can be retrieved from the ChannelListener object:

Out[1]=1
Out[2]=2

Clean up:

Possible Issues  (1)Common pitfalls and unexpected behavior

Non-alphanumeric characters are generally not allowed in channel names:

Out[1]=1

Hyphen characters are allowed:

Out[2]=2
Wolfram Research (2016), ChannelObject, Wolfram Language function, https://reference.wolfram.com/language/ref/ChannelObject.html (updated 2017).
Wolfram Research (2016), ChannelObject, Wolfram Language function, https://reference.wolfram.com/language/ref/ChannelObject.html (updated 2017).

Text

Wolfram Research (2016), ChannelObject, Wolfram Language function, https://reference.wolfram.com/language/ref/ChannelObject.html (updated 2017).

Wolfram Research (2016), ChannelObject, Wolfram Language function, https://reference.wolfram.com/language/ref/ChannelObject.html (updated 2017).

CMS

Wolfram Language. 2016. "ChannelObject." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/ChannelObject.html.

Wolfram Language. 2016. "ChannelObject." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/ChannelObject.html.

APA

Wolfram Language. (2016). ChannelObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChannelObject.html

Wolfram Language. (2016). ChannelObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChannelObject.html

BibTeX

@misc{reference.wolfram_2025_channelobject, author="Wolfram Research", title="{ChannelObject}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/ChannelObject.html}", note=[Accessed: 03-June-2025 ]}

@misc{reference.wolfram_2025_channelobject, author="Wolfram Research", title="{ChannelObject}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/ChannelObject.html}", note=[Accessed: 03-June-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_channelobject, organization={Wolfram Research}, title={ChannelObject}, year={2017}, url={https://reference.wolfram.com/language/ref/ChannelObject.html}, note=[Accessed: 03-June-2025 ]}

@online{reference.wolfram_2025_channelobject, organization={Wolfram Research}, title={ChannelObject}, year={2017}, url={https://reference.wolfram.com/language/ref/ChannelObject.html}, note=[Accessed: 03-June-2025 ]}