# @twurple/eventsub-ws

> Listen to events on Twitch via their EventSub API using WebSockets.

Latest version **8.2.0** (published 2026-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @twurple/eventsub-ws
pnpm add @twurple/eventsub-ws
yarn add @twurple/eventsub-ws
bun add @twurple/eventsub-ws
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.2.0 |
| Published | 2026-09-13 |
| First published | 2022-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 21.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 753 |
| Author | Daniel Fischer |
| Maintainers | d-fischer |
| Keywords | twitch, eventsub, websocket, stream, bot, events |

## Links

- npm: https://www.npmjs.com/package/@twurple/eventsub-ws
- Repository: https://github.com/twurple/twurple
- Homepage: https://twurple.js.org
- Issues: https://github.com/twurple/twurple/issues
- Funding: https://github.com/sponsors/d-fischer
- npm.io page: https://npm.io/package/@twurple/eventsub-ws

## Dependencies (8)

- [tslib](https://npm.io/package/tslib.md) ^2.0.3
- [@twurple/auth](https://npm.io/package/@twurple/auth.md) 8.2.0
- [@twurple/common](https://npm.io/package/@twurple/common.md) 8.2.0
- [@d-fischer/logger](https://npm.io/package/@d-fischer/logger.md) ^4.2.1
- [@d-fischer/connection](https://npm.io/package/@d-fischer/connection.md) ^10.0.1
- [@twurple/eventsub-base](https://npm.io/package/@twurple/eventsub-base.md) 8.2.0
- [@d-fischer/shared-utils](https://npm.io/package/@d-fischer/shared-utils.md) ^3.6.1
- [@d-fischer/typed-event-emitter](https://npm.io/package/@d-fischer/typed-event-emitter.md) ^3.3.3

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 8.2.0 (latest) — 2026-09-13
- 7.1.0-pre.9 (next) — 2024-03-11
- 8.1.4 — 2026-05-10
- 8.1.3 — 2026-04-03
- 8.1.2 — 2026-04-01
- 8.1.1 — 2026-04-01
- 8.1.0 — 2026-04-01
- 8.0.3 — 2026-01-13
- 8.0.2 — 2025-11-28
- 8.0.1 — 2025-11-26
- 8.0.0 — 2025-11-25
- 7.4.0 — 2025-07-27
- 7.3.0 — 2025-04-26
- 7.2.1 — 2024-12-22
- 7.2.0 — 2024-10-08
- … 72 more at https://npm.io/package/@twurple/eventsub-ws/versions

## README

# Twurple - EventSub WebSocket listener

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/twurple/twurple/blob/main/LICENSE)
[![npm version](https://img.shields.io/npm/v/@twurple/eventsub-ws.svg?style=flat)](https://www.npmjs.com/package/@twurple/eventsub-ws)
![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)

Listen to events on Twitch via their EventSub API using WebSockets.

## Installation

	npm install @twurple/api @twurple/eventsub-ws
	# or
	yarn add @twurple/api @twurple/eventsub-ws
	# or
	pnpm install @twurple/api @twurple/eventsub-ws

## Documentation

A good place to start with this library is the [documentation](https://twurple.js.org)
which also includes a complete reference of all classes and interfaces, as well as changes and deprecations between major versions.

## If you're getting stuck...

You can join the [Twitch API Libraries Discord Server](https://discord.gg/b9ZqMfz) and ask in `#twurple` for support.

---
_Source: https://npm.io/package/@twurple/eventsub-ws · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
