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:

Introduced in 2016
 (11.0)
 |
Updated in 2017
 (11.2)