--- title: "Overview" url: https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/data-streams/overview/ description: "This page lists the SDK methods available to perform operations in the Data Streams component." last_updated: 2026-12-01T15:54:40Z service: CloudScale type: general related_links: - name: "Catalyst CloudScale" url: /en/cloud-scale/ - name: "Data Streams Help Documentation" url: /en/cloud-scale/help/data-streams/introduction/ - name: "Java SDK Documentation" url: /en/sdk/java/v1/cloud-scale/data-streams/get-component-instance/ - name: "Python SDK Documentation" url: /en/sdk/python/v1/cloud-scale/data-streams/get-component-instance/ - name: "REST API Documentation" url: /en/api/code-reference/cloud-scale/data-streams/get-all-channels/#GetAllChannels repository: name: "Repository" url: https://github.com/catalystbyzoho/zcatalyst-sdk-js --- # Data Streams JavaScript SDK # Overview [Data Streams](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-streams/introduction/) is a *Catalyst CloudScale* component that streams real-time, event-driven data from publishers to subscribers through [channels](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-streams/channels-overview/). It follows a publish-subscribe model: data published to a channel reaches every subscribed client in real time over [WebSocket connections](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-streams/key-concepts/#websocket-connections). The *Data Streams JavaScript SDK* package enables you to fetch the channels in your project, publish data to a channel, generate the token pair a subscriber needs to connect, track the number of active subscribers, and subscribe to a channel over WebSocket. ### Prerequisites You need to install the following package to be able to use the Data Streams SDK methods. ```sh npm install @zcatalyst/datastreams ``` > **Info:** Ensure that you have applied the [required authentication configuration](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/auth-config/node-consideration/) to use the SDK methods of this component. ### Import Requirement You need to import the following modules to use the Data Streams SDK methods. ```javascript const { DataStreams, DataStreamsWebSocket } = require('@zcatalyst/datastreams');//Data Streams modules ``` ### List of SDK Methods The following table contains the list of SDK methods that can be used to perform Data Streams operations through code.
| Category | SDK Method | Required Scope |
|---|---|---|
| General Operations | [Get Data Streams Instance](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/data-streams/get-component-instance/) | Not required |
| Channel Operations | [Get Channels](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/data-streams/get-channels/)
|
**Admin** |
[Generate Token Pair](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/data-streams/generate-token-pair/)
|
**Admin** | |
| [Get Live Count](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/data-streams/get-live-count/) | **Admin** | |
| [Publish Data](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/data-streams/publish-data/) | **Admin** | |
| Subscriber Operations | [WebSocket Connection](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/data-streams/websocket-connection/)
|
Not required |