Test Data Flow

After creating a channel or any time you open an existing channel from the Channels list page, you will be directed to the Test Data Flow section. This section enables you to verify how data is published and received through the channel before implementing it in your application.

Using this interface, you can simulate both a publisher and a subscriber directly from the Catalyst Console, without writing any code or deploying a function.

Note: Data sent through the Test Data Flow section is treated as a real streaming event. It will be delivered to all active subscribers connected to the channel, including any subscriber connections established through the SDK or API.

The Test Data Flow section contains two primary actions: Send and Receive.

Send Test Data

The Send tab allows you to simulate a publisher and send sample data to the channel. The data you send will be treated as a real streaming event and will be delivered to any active subscribers connected to the channel, including the test receiver in the console.

Test Data Flow Send tab interface

To test publishing:

  1. Navigate to the Send tab in the Test Data Flow section of your channel.
  2. Enter the sample payload in the Enter Data Payload field.
  3. Click Send to publish the data to the channel.

Enter payload and send test data

This allows you to verify how event data will be published by your application services. You can use this to confirm that the channel is correctly configured before integrating the publishing logic in your application.

Receive Channel Data

The Receive tab allows you to simulate a subscriber and listen for incoming events from the channel.

Test Data Flow Receive tab interface

To start receiving events:

  1. Navigate to the Receive tab in the Test Data Flow section of your channel.
  2. Click Activate Stream to establish a test subscription.
  3. The console will begin listening for events published to the channel.

Activate Stream to start listening for events

  1. Any incoming data will appear in the Receive channel data panel in real time.

Receive channel data panel showing incoming events

Each event displayed will include the following fields:

  • data – the payload that was published to the channel.
  • streamingId – the unique identifier assigned to that event in the stream.

These fields correspond to the message event structure that your application will receive when subscribing through the SDK.

Event Acknowledgement

After receiving an event, you must click Send Acknowledgement to confirm that the message has been processed.

Data Streams delivers events in sequence, and the acknowledgement ensures that the next event in the stream can be delivered. Until the acknowledgement is sent, subsequent events will not be displayed in the receiver.

Send Acknowledgement button for received event

This behavior mirrors the sendAck() method used in the SDK. In your application code, you must call sendAck() after processing each message to receive the next one. Refer to the Subscribe with WebSocket guide for implementation details.

Closing the Test Stream

You can stop the test receiver at any time by clicking Disconnect. Once disconnected, the test subscriber will no longer receive events from the channel. If you do not manually disconnect, the test connection will be closed automatically after two minutes.

Disconnect button to stop test receiver

Note: Clicking Disconnect only stops the test connection created in the console. It does not affect any subscriber connections established through the SDK or API. The test connection will also be closed automatically after two minutes if not manually disconnected.

Set Up Data Streams

The right side of the Test Data Flow section provides example code snippets for sending or receiving events using the Catalyst SDK. Snippets are available in supported languages including Java, JavaScript, and Python.

These examples help you implement the same publishing and subscribing behavior in your application.

For complete implementation details, refer to the SDK and API documentation.

Last Updated 2026-10-08 12:04:32 +0530 IST