@tracerbench/protocol-connection

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@tracerbench/protocol-connection
2.0.02 years ago3 years agoMinified + gzip package size for @tracerbench/protocol-connection in KB

Readme

@tracerbench/protocol-connection
Adapts a message transport into a devtools protocol connection.
This peer depends on devtools-protocol which defines the typing of events, requests, and responses of the devtools protocol.

API

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

The types are declared in types.d.ts