Skip to content

Commit

Permalink
Extend worker as part of RPC "call"
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Sep 15, 2023
1 parent 7560b2c commit 56934be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/rpc/BaseRpcDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ export default abstract class BaseRpcDriver {
throw new TypeError('sessionId is required')
}
let done = false
const worker = await this.getWorker(sessionId)
const unextendedWorker = await this.getWorker(sessionId)
const worker = pluginManager.evaluateExtensionPoint(
'Core-extendWorker',
unextendedWorker,
) as WorkerHandle
const rpcMethod = pluginManager.getRpcMethodType(functionName)
const serializedArgs = await rpcMethod.serializeArguments(args, this.name)
const filteredAndSerializedArgs = this.filterArgs(serializedArgs, sessionId)
Expand Down

0 comments on commit 56934be

Please sign in to comment.