Skip to content

Registering requests / responses (postMessage) as callable API #54

@smnbbrv

Description

@smnbbrv

Hi @rogchap

I work on a custom gRPC code generator plugin and due to a different data structure I have problems connecting it to this amazing extension. My idea is to have the interceptor which would simply push the messages via your API.

That's why I'd love to have this (and similar for streaming) calls

window.postMessage({

as some sort of fixed API.

Of course I can call postMessage directly and use your data structure, but, as long as it is not anyhow documented I am unsure of its stability.

This by the way could potentially solve this issue #35 as well. The RPC calls there are done in a worker thread, however they could simply post the messages to the window and redirect them there to your API.

Would this be possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions