Trying Out Your Messaging Service

The first thing you need to do with Solace PubSub+ Cloud is to create a messaging service. Assuming that you have now created a messaging service, this getting started tutorial will walk you through trying your new messaging service. You will try out the messaging service by connecting a publisher and a subscriber, subscribing to a topic, and publishing a matching message.

Goals

The goal of this tutorial is to demonstrate the most basic messaging interaction using Solace messaging. This tutorial will show you:

  1. How to connect a publisher and a subscriber.
  2. How to subscribing to a topic.
  3. How to publish a matching message.

Step 1: Go to try me tab

To access the try me tab, follow the steps below.

  1. Go to your messaging services page by selecting Services from the top navigation bar.
  2. Select your messaging service to navigate to messaging service details.
  3. On the service details page, navigate to the Try Me! tab.
../_images/tryMe_1.png
  1. You will then see the Try Me tab which has a JavaScript applications that you can use to exchange messages with your PubSub+ messaging service.
../_images/tryMe_2.png

Step 2: Connect publisher and subscriber

The try me tab is divided into the following sections.

  • Donut charts at the top representing your messaging service metrics such as network usage, guaranteed messaging endpoints and the number of active connections.
  • Two code pen projects: publisher and subscriber.

To connect publisher and subscriber, follow the steps below.

  1. Click on the connect button under step 1 on the publisher codepen.
  1. Click on the connect button under step 1 on the subscriber codepen.
  1. Validate publisher and subscriber connection.
../_images/tryMe_5.png
  1. Optionally: Select the ‘show advanced settings’ option to see the credentials that this application is using to connect. These credentials are found in the ‘Connect’ tab and can be used when connecting your other applications.

Step 3: Subscribe to a topic

Subscribe to the try-me topic under step 2 on the subscriber window. You can also try other topics if you like. Click here to learn more about topics.

Step 4: Publish a matching message

Publish a message with try-me as the topic name under step 2 on the publisher codepen.

You should see that the message has been sent on you publisher and received by your codepen.

../_images/tryMe_8.png

Step 6: Learn more

Well done. You’ve now exchanged with your messaging service. Want to learn more?