Publish Data

Catalyst Data Streams enables you to publish real-time data to a channel. Any active subscribers connected to that channel will receive the published data instantly through their WebSocket connections.

You can publish data to a channel by passing the channel ID and the data payload to the publishData() method.

Sample Code Snippet


Package Imports
copy
import com.zc.component.datastream.ZCDatastream;
copy
//Create a Data Streams instance
ZCDatastream datastream = ZCDatastream.getInstance();
//Publish a message to the channel
Boolean resp = datastream.publishData(
    "11365000000413001",
    "Hey! Welcome to Zoho DataStreams!"
);

Last Updated 2026-07-07 10:52:22 +0530 IST

ON THIS PAGE

RELATED LINKS

Data Streams