Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vemv opened this issue May 26, 2023 · 1 comment
Closed

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

vemv opened this issue May 26, 2023 · 1 comment

Comments

@vemv
Copy link

vemv commented May 26, 2023

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'.

  • Is CDP a specific, distinct protocol, like SMTP, FTP, POP, etc?
  • Is CDP 'just HTTP'? A subset thereof?
  • Is CDP 'just websockets'? subset thereof?
  • Something else?

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
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants