npm.io
2.1.0 • Published 1 year ago

@tracerbench/protocol-connection

Licence
BSD-2-Clause
Version
2.1.0
Deps
3
Size
63 kB
Vulns
0
Weekly
0
Stars
135

@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