跳转到内容
简体中文

ReceptionistSubscribe

此内容尚不支持你的语言。

Defined in: src/discovery/ReceptionistMessages.ts:58

Continuous subscription: replyTo receives a Listing now AND every time the set of refs for this key changes (register, deregister, cluster gossip, node leaving).

The receptionist watches replyTo for the lifetime of the subscription, so a subscriber that stops without unsubscribing is dropped rather than pinned forever (#137).

T = unknown

new ReceptionistSubscribe<T>(key, replyTo): Subscribe<T>

Defined in: src/discovery/ReceptionistMessages.ts:59

ServiceKey<T>

ReceptionistSubscriberRef<T>

Subscribe<T>

readonly key: ServiceKey<T>

Defined in: src/discovery/ReceptionistMessages.ts:60


readonly replyTo: ReceptionistSubscriberRef<T>

Defined in: src/discovery/ReceptionistMessages.ts:61