You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When splitting the main.ts file, we introduced a global object in the main process called k6StudioState. This object contains variables that are used/mutated for multiple IPC handlers and is accessible anywhere in the main process.
Once #378 is complete, we'd like to replace that global variable with a more robust approach that allows the currently global variables to be injected into the handlers. See proposal in #627 (comment)
Example:
interfaceProxyServiceEvents{'status:change': [ProxyStatus],ready: [void]}exportclassProxyServiceextendsEventEmitter<ProxyServiceEvents>{status: ProxyStatusstart(){}stop(){}}// handlers/index.tsexportfunctioninitialize({ browserServer, proxyService }: Services){browserRemote.initialize(browserServer);// Right now the `browser` handler parts are actually using a global// variable because I didn't want to rewrite that part. But this is what// it will look like after this PR is merged.browser.initialize(browserServer,proxyService)}
The text was updated successfully, but these errors were encountered:
NOTE: This issue depends on #378 to be completed.
When splitting the
main.ts
file, we introduced a global object in the main process calledk6StudioState
. This object contains variables that are used/mutated for multiple IPC handlers and is accessible anywhere in the main process.Once #378 is complete, we'd like to replace that global variable with a more robust approach that allows the currently global variables to be injected into the handlers. See proposal in #627 (comment)
Example:
The text was updated successfully, but these errors were encountered: