Skip to content

Home > @esengine/ecs-framework-monorepo > ClientRpcOptions

ClientRpcOptions interface

客户端RPC装饰器选项

Signature:

typescript
export interface ClientRpcOptions extends RpcOptions

Extends: RpcOptions

Properties

Property

Modifiers

Type

Description

aggregationStrategy?

'first' | 'all' | 'majority'

(Optional) 广播到多个客户端时的聚合策略

cacheStrategy?

'none' | 'memory' | 'persistent'

(Optional) 缓存策略

cacheTTL?

number

(Optional) 缓存有效期(毫秒)

基于 MIT 许可证发布