ChromeDevTools / devtools-protocol

Chrome DevTools Protocol
https://chromedevtools.github.io/devtools-protocol/
BSD 3-Clause "New" or "Revised" License
1.15k stars 226 forks source link

It's not clear what kind of protocol is #299

Closed vemv closed 1 year ago

vemv commented 1 year ago

Hi,

while I have a basic understanding of CDP, and have successfully used it, CDP's documentation does not do a great job at describing what do they mean exactly by 'protocol'.

The way I see it, a set of type definitions like browser_protocol.json do not constitute a protocol.

Those type definitions may be part of it, but what I believe to be missing is how communication happens.

Thanks much,

-V

paulirish commented 1 year ago

@vemv CDP sits on top of JSON-RPC, though spec-wise it appears to align closest with the 1.1 Object Spec.

The transport for CDP is almost entirely over websockets, though using a pipe is supported.