-
Notifications
You must be signed in to change notification settings - Fork 137
Plugins/initial #1794
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
base: main
Are you sure you want to change the base?
Plugins/initial #1794
Conversation
*/ | ||
static lazy(options?: ConnectionOptions): Connection { | ||
options = options || {}; | ||
for (const plugin of options.plugins || []) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?? instead.
} | ||
} | ||
|
||
export interface Plugin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just give the full name here.
|
||
let connectNative = async () => await runtime.createNativeClient(options) | ||
for (const plugin of options.plugins || []) { | ||
const cn = connectNative |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;
*/ | ||
async run(): Promise<void> { | ||
let nextFunction = (w: Worker) => w.runInternal(); | ||
for (const plugin of this.plugins) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverse list
return new this(runtime, client, enableTestService); | ||
|
||
let connectNative = async () => await runtime.createNativeClient(options) | ||
for (const plugin of options.plugins || []) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverse list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use composeInterceptors instead?
*/ | ||
configureReplayWorker(config: ReplayWorkerOptions): ReplayWorkerOptions; | ||
|
||
runWorker(worker: Worker, next: (w: Worker) => Promise<void>): Promise<void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document that it won't happen on replay worker
What was changed
Why?
Checklist
Closes
How was this tested: