# @types/ws

> TypeScript definitions for ws

Latest version **8.18.1** (published 2025-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/ws
pnpm add @types/ws
yarn add @types/ws
bun add @types/ws
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 8.18.1 |
| Published | 2025-04-01 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 41.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/ws
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ws
- npm.io page: https://npm.io/package/@types/ws

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 8.18.1 (latest) — 2025-04-01
- 8.18.0 (ts5.0) — 2025-03-04
- 8.5.13 (ts4.8) — 2024-11-02
- 8.5.10 (ts4.7) — 2023-11-21
- 8.5.5 (ts4.4) — 2023-06-08
- 8.5.4 (ts4.2) — 2022-12-30
- 8.5.3 (ts3.9) — 2022-03-11
- 8.5.1 (ts3.8) — 2022-02-24
- 8.2.0 (ts3.7) — 2021-09-25
- 7.4.7 (ts3.6) — 2021-07-19
- 7.4.4 (ts3.5) — 2021-05-11
- 7.4.0 (ts3.2) — 2020-11-10
- 7.2.6 (ts3.0) — 2020-06-29
- 7.2.4 (ts2.9) — 2020-04-13
- 6.0.3 (ts2.1) — 2019-08-23
- … 65 more at https://npm.io/package/@types/ws/versions

## README

# Installation
> `npm install --save @types/ws`

# Summary
This package contains type definitions for ws (https://github.com/websockets/ws).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ws.

### Additional Details
 * Last updated: Tue, 01 Apr 2025 02:59:53 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Paul Loyd](https://github.com/loyd), [Margus Lamp](https://github.com/mlamp), [Philippe D'Alva](https://github.com/TitaneBoy), [reduckted](https://github.com/reduckted), [teidesu](https://github.com/teidesu), [Bartosz Wojtkowiak](https://github.com/wojtkowiak), [Kyle Hensel](https://github.com/k-yle), and [Samuel Skeen](https://github.com/cwadrupldijjit).

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