Just a second...

Testing Diffusion Cloud from the Diffusion Cloud Dashboard

The Diffusion™ Cloud Dashboard includes a test client that enables you to connect to your Diffusion Cloud service and work with topics and messaging.

Figure 1. Diffusion Cloud dashboard test client Screenshot of the Diffusion Cloud test client
The Connection tab of the test client enables you to connect to your Diffusion Cloud service. You can configure the following connection parameters:
  • Principal and password to connect with.

    To be able to use all features of the test client, connect with a principal that has the TOPIC_CONTROL role.

  • The transports to connect with.

    If more than one transport is selected, the test client cascades through the protocols it uses to attempt connection.

  • The log level of the test client.

    You can view any log messages output by the test client in the developer console of your browser.

  • Whether to make a secure connection.

    The test client connects securely by default. If you deselect secure connection, the port number the test client connects on changes to 80.

  • Whether to reconnect if the test client loses connection.

The Connection tab also displays the connection state of the test client and the session ID of the test client's currently connected session.

Topics

Figure 2. Topics tab Screenshot of the Diffusion Cloud test client topics tab

The Topics tab of the test client enables you to send and receive data through topics.

You can use topic selectors to select a set of topics to subscribe to, unsubscribe from, or fetch the current value of. For more information about topic selectors, see Topic selectors. For subscribed topics, the value of the topic at the time of subscription and any subsequent updates to the value are printed in the test client console. For fetched topics, only the value of the topic at the time of the fetch request is printed in the test client console.

You can create, update, and delete individual topics by specifying their topic path. For more information about topic paths, see Topic naming. The test client can create JSON topics and single value topics and update them with compatible values. The data used to update a topic is printed in the test client console.

Messaging

Figure 3. Messaging tab Screenshot of the Diffusion Cloud test client messaging tab

The Messaging tab of the test client enables you to send messages to a message path and to handle messages sent to a message path. For more information about messaging, see Request-response messaging.

You can register a message handler against a message path to handle any messages sent to this path. Messages sent to a message path handled by the test client are printed in the test client console. The Messaging tab of the test client lists the handlers that it has registered.

You can send a message to a message paths once or set a message to repeat a certain number of times at a given interval. The messages sent to a message path are printed in the test client console.