# bunqueue v2.6.19

WebSocket idle timeout (ping/pong), webSocket max payload limit.

Canonical: https://bunqueue.dev/blog/bunqueue-v2-6-19/

---

<!-- Generated from changelog.md by docs/scripts/generate-release-posts.ts. Edit the changelog and regenerate. -->

WebSocket idle timeout (ping/pong), webSocket max payload limit.

![](https://github.com/egeominotti.png?size=64) [egeominotti](https://github.com/egeominotti)

#### To install bunqueue v2.6.19

```bash title="bun"
bun add bunqueue@2.6.19
```

```bash title="npm"
npm install bunqueue@2.6.19
```

#### To upgrade bunqueue

```bash
bun add bunqueue@latest
```

## WebSocket idle timeout (ping/pong)

Set `idleTimeout: 120` on the WebSocket server. Bun automatically sends ping frames and closes connections that don't respond with pong within 120 seconds. Dead clients (crash, network drop, kill -9) are now detected and cleaned up automatically instead of leaking in the clients Map forever.

## WebSocket max payload limit

Set `maxPayloadLength: 1MB`. Prevents memory exhaustion from oversized messages.

## Thanks to 1 contributor!

- [@egeominotti](https://github.com/egeominotti)

---

[← bunqueue v2.6.18](https://bunqueue.dev/blog/bunqueue-v2-6-18/) · [Release on GitHub](https://github.com/egeominotti/bunqueue/releases/tag/v2.6.19) · [Commits since v2.6.17](https://github.com/egeominotti/bunqueue/compare/v2.6.17...v2.6.19) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
