# @tracerbench/protocol-connection

> Adapts a message transport into a [devtools protocol](https://chromedevtools.github.io/devtools-protocol/) connection.

Latest version **2.1.0** (published 2025-07-17) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @tracerbench/protocol-connection
pnpm add @tracerbench/protocol-connection
yarn add @tracerbench/protocol-connection
bun add @tracerbench/protocol-connection
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2025-07-17 |
| First published | 2019-06-05 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 62.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 135 |
| Author | Kris Selden |
| Maintainers | krisselden, lynchbomb, spham92, tsubomi |

## Links

- npm: https://www.npmjs.com/package/@tracerbench/protocol-connection
- Repository: https://github.com/TracerBench/chrome-debugging-client
- Homepage: https://github.com/TracerBench/chrome-debugging-client#readme
- Issues: https://github.com/TracerBench/chrome-debugging-client/issues
- npm.io page: https://npm.io/package/@tracerbench/protocol-connection

## Dependencies (3)

- [race-cancellation](https://npm.io/package/race-cancellation.md) ^0.4.1
- [@tracerbench/message-transport](https://npm.io/package/@tracerbench/message-transport.md) ^2.1.0
- [@tracerbench/protocol-transport](https://npm.io/package/@tracerbench/protocol-transport.md) ^2.1.0

## Recent versions

- 2.1.0 (latest) — 2025-07-17
- 2.0.0 — 2020-06-28
- 1.3.1 — 2020-06-26
- 1.3.0 — 2020-06-16
- 1.2.0 — 2019-11-22
- 1.1.0 — 2019-10-16
- 1.0.3 — 2019-10-15
- 1.0.2 — 2019-08-12
- 1.0.1 — 2019-07-10
- 1.0.0 — 2019-07-02
- 1.0.0-beta.2 — 2019-06-21
- 1.0.0-beta.1 — 2019-06-05

## README

# @tracerbench/protocol-connection

Adapts a message transport into a [devtools protocol](https://chromedevtools.github.io/devtools-protocol/) connection.

This peer depends on `devtools-protocol` which defines the typing of events, requests, and responses of the devtools protocol.

## API

```ts
export default function newProtocolConnection(
  attach: AttachMessageTransport,
  newEventEmitter: NewEventEmitter,
  debug: DebugCallback,
): ProtocolConnection;
```

The types are declared in [types.d.ts](types.d.ts)

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