Skip to content

[WIP] Add support for retrieving event class by CDP method name#41

Merged
hyp3ri0n-ng merged 1 commit intomasterfrom
copilot/add-event-class-retrieval
Nov 11, 2025
Merged

[WIP] Add support for retrieving event class by CDP method name#41
hyp3ri0n-ng merged 1 commit intomasterfrom
copilot/add-event-class-retrieval

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 11, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add support for retrieving an event class by it's CDP method name</issue_title>
<issue_description>While trying to use trio-chrome-devtools-protocol, I encountered the need to dynamically retrieve an event class by it's CDP method name in order to wait_for() it or listen() to it

Is it possible to add support for that use case?

Maybe something like cdp.utils.get_event_class():

def get_event_class(method: str) -> typing.Any:
    return _event_parsers[method]
```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@hyp3ri0n-ng hyp3ri0n-ng merged commit b96ac8c into master Nov 11, 2025
8 of 15 checks passed
Copilot AI requested a review from hyp3ri0n-ng November 11, 2025 03:36
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

Successfully merging this pull request may close these issues.

Add support for retrieving an event class by it's CDP method name

2 participants