Get Component Instance

Catalyst Data Streams lets you publish live, event-based data through channels and deliver it instantly to subscribed clients. You can create an instance of the Data Streams component to access all channel-level operations such as listing channels, publishing data, and generating WebSocket tokens.

You must first create a Data Streams instance using the getInstance() method to perform any Data Streams operations.

Sample Code Snippet


Package Imports
copy
import com.zc.component.datastream.ZCDatastream;
copy
//Create a Data Streams instance
ZCDatastream datastream = ZCDatastream.getInstance();

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

ON THIS PAGE

RELATED LINKS

Data Streams