Skip to content

[discussion] calling timing of messenger.start(); #55

@maru7777

Description

@maru7777

hello admin, recently I want write a plugin, it has a few UI components and each componet has its own UI .all components locate in a same webview

I want to register callback function in each component UI , but vscode-messenger have to register all callback function before calling messenger.start(); , maybe ?

but i can not load all components at the very beginning , only when user load that page will it begin to register callback

but at that time messenger.start(); has been called for a long time

if I write all callback and register them in very beginning , i can not get full context , some function maybe not work well

so can I deferred the callback registration until component loading ? register ant callback at any time ?

or can I use multiple instance in multiple components ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions