NapCatQQ/packages/napcat-rpc/src
手瓜一十雪 74781fda0a Cache object properties to avoid extra RPC
Serialize non-function properties of server-side objects as cachedProps so simple property reads don't require additional RPCs. Added cachedProps to SerializedValue, have RpcServer.storeObjectRef serialize and attach cachedProps (skipping functions), updated serializer to deserialize cachedProps and pass them to proxyCreator, and updated client proxy creation to accept cachedProps and return cached top-level properties directly. Tests updated to expect direct property access for serialized/simple objects and arrays.
2026-02-02 18:59:23 +08:00
..
client.ts Cache object properties to avoid extra RPC 2026-02-02 18:59:23 +08:00
easy.ts Add napcat-rpc package with deep RPC 2026-02-02 17:12:05 +08:00
index.ts Add napcat-rpc package with deep RPC 2026-02-02 17:12:05 +08:00
serializer.ts Cache object properties to avoid extra RPC 2026-02-02 18:59:23 +08:00
server.ts Cache object properties to avoid extra RPC 2026-02-02 18:59:23 +08:00
transport.ts Add napcat-rpc package with deep RPC 2026-02-02 17:12:05 +08:00
types.ts Cache object properties to avoid extra RPC 2026-02-02 18:59:23 +08:00