# websocket13

> Simple WebSocket protocol 13 client with no native or heavy dependencies

Latest version **4.1.0** (published 2025-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install websocket13
pnpm add websocket13
yarn add websocket13
bun add websocket13
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2025-11-04 |
| First published | 2016-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.22.0 |
| Dependencies | 5 |
| Unpacked size | 151.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Alex Corn |
| Maintainers | doctormckay |
| Keywords | websocket, websockets, web socket, web sockets, networking, network, socket, sockets, data |

## Links

- npm: https://www.npmjs.com/package/websocket13
- Repository: https://github.com/DoctorMcKay/node-websocket13
- Issues: https://github.com/DoctorMcKay/node-websocket13/issues
- npm.io page: https://npm.io/package/websocket13

## Dependencies (5)

- [bytebuffer](https://npm.io/package/bytebuffer.md) ^5.0.1
- [permessage-deflate](https://npm.io/package/permessage-deflate.md) ^0.1.7
- [tiny-typed-emitter](https://npm.io/package/tiny-typed-emitter.md) ^2.1.0
- [@doctormckay/stdlib](https://npm.io/package/@doctormckay/stdlib.md) ^2.7.1
- [websocket-extensions](https://npm.io/package/websocket-extensions.md) ^0.1.4

## 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

- 4.1.0 (latest) — 2025-11-04
- 3.0.0-beta.2 (beta) — 2023-04-20
- 4.0.0 — 2023-09-23
- 3.0.2 — 2023-04-21
- 3.0.1 — 2023-04-21
- 3.0.0 — 2023-04-21
- 3.0.0-beta.1 — 2023-04-17
- 2.4.0-beta.1 — 2023-04-17
- 2.3.1 — 2023-04-17
- 2.3.0 — 2023-04-08
- 2.2.0 — 2020-05-23
- 2.1.3 — 2020-05-21
- 1.7.6 — 2020-05-20
- 2.1.2 — 2020-05-20
- 2.1.1 — 2019-09-06
- … 28 more at https://npm.io/package/websocket13/versions

## README

# WebSockets for Node.js
[![npm version](https://img.shields.io/npm/v/websocket13.svg)](https://www.npmjs.com/package/websocket13)
[![npm downloads](https://img.shields.io/npm/dm/websocket13.svg)](https://npmjs.com/package/websocket13)
[![license](https://img.shields.io/npm/l/websocket13.svg)](https://github.com/DoctorMcKay/node-websocket13/blob/master/LICENSE)
[![sponsors](https://img.shields.io/github/sponsors/DoctorMcKay.svg)](https://github.com/sponsors/DoctorMcKay)

This is a pure-JavaScript implementation of [WebSocket version 13](https://tools.ietf.org/html/rfc6455).
It has no large or native dependencies. It can establish connections to WebSocket servers (as a client), and also accept
connections from clients (as a server).

**Requires Node.js v12.22.0 or later.**

# Documentation

Please see the [GitHub wiki](https://github.com/DoctorMcKay/node-websocket13/wiki) for documentation.

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