--- title: "Get Data Streams Instance" url: https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/data-streams/get-component-instance/ description: "This page describes the method to create a Data Streams component instance in your web application with sample code snippets." last_updated: 2026-10-05T15:13:57Z service: Cloud Scale type: general related_links: - name: "Data Streams" url: /en/cloud-scale/help/data-streams/introduction --- # Catalyst Data Streams [Catalyst Data Streams](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-streams/introduction) enables you to publish live, event-based data through channels and deliver it instantly to subscribed clients or any third-party services. Once you create a channel from the Catalyst console, any published data to that channel is streamed in real time to all authorized subscribers over WebSocket connections. Whether you are building live dashboards, notifications, activity feeds, or system monitors, Catalyst SDK provides you with the required APIs to publish, subscribe, and manage real-time data flow with minimal setup. #### Install and Import the SDK You must install the Data Streams package and import the required classes as shown below. ```javascript const { DataStreams, DataStreamsWebSocket } = require("@zcatalyst/datastreams"); ``` #### Get Component Instance You can create a `datastreams` reference as shown below. This will not fire a server-side call. We will refer to this component instance while performing channel operations such as listing channels, publishing data, and generating WebSocket tokens. ```javascript //Create a Data Streams instance const datastreams = new DataStreams(); ```