ChannelObject

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)

A new anonymous channel:

A named channel of the currently authenticated user:

Scope  (8)

A new unnamed channel:

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

A named channel in a subdirectory of the home area:

A named channel of another user:

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

A channel referred to by the URL:

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

Delete the channel that was automatically created by CloudDeploy:

A channel with options:

Options  (2)

Permissions  (2)

Create a public channel:

Start listening on the channel and send some data:

The received message:

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

Clean up:

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

Properties & Relations  (4)

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

Check that the channel does not exist:

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

Delete the channel from the server:

CreateChannel returns a ChannelObject:

Clean up:

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

ChannelObject can be retrieved from the ChannelListener object:

Clean up:

Possible Issues  (1)

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

Hyphen characters are allowed:

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).

CMS

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_channelobject, organization={Wolfram Research}, title={ChannelObject}, year={2017}, url={https://reference.wolfram.com/language/ref/ChannelObject.html}, note=[Accessed: 21-November-2024 ]}