We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d7d699 commit d3d6713Copy full SHA for d3d6713
1 file changed
packages/core/src/bridge/index.ts
@@ -109,11 +109,13 @@ export class FrpBridge {
109
...(options.queries ?? {})
110
}
111
112
- // Update runtime with handlers
113
- // @ts-expect-error - Setting private property for handler registration
114
- this.runtime.commands = commands
115
116
- this.runtime.queries = queries
+ // Register handlers in runtime
+ Object.entries(commands).forEach(([name, handler]) => {
+ this.runtime.registerCommand(name, handler)
+ })
+ Object.entries(queries).forEach(([name, handler]) => {
117
+ this.runtime.registerQuery(name, handler)
118
119
120
this.eventSink = options.eventSink
121
setupProcessEventBridge(this.process, this.eventSink)
0 commit comments