chore(rpc): promote Wrapper to BaseInstance

This commit is contained in:
2026-09-28 02:05:40 +01:00
parent 571d113386
commit 558f04567a
6 changed files with 156 additions and 367 deletions
+2 -5
View File
@@ -1,7 +1,6 @@
import { RPCInstanceClient } from './core/client'
import { RPCInstanceServer } from './core/server'
import { RPCInstanceWebview } from './core/webview'
import { Wrapper } from './core/wrapper'
import { RPCError } from './utils/errors'
import {
type RPCConfig,
@@ -27,7 +26,7 @@ import {
*
* @class
*/
class RPCFactory<T extends RPCEnvironment> extends Wrapper {
class RPCFactory<T extends RPCEnvironment> {
private readonly operator:
| RPCInstanceServer
| RPCInstanceClient
@@ -40,9 +39,7 @@ class RPCFactory<T extends RPCEnvironment> extends Wrapper {
* @param {boolean} opts.debug - Show additional logs
*/
constructor(opts: RPCConfig<T>) {
super(opts)
this.console.log('[RPC] Initializing...')
console.log('[RPC] Initializing...')
switch (opts.env) {
case 'server':