コンテンツにスキップ
日本語

Subscribe

このコンテンツはまだ日本語訳がありません。

Defined in: src/cluster/pubsub/Messages.ts:19

Subscribe a local actor to a topic.

replyTo is where the SubscribeAcknowledgment — or the SubscribeRejected a full cap produces — is delivered. It exists because the mediator used to answer context.sender, and that slot is empty for the documented call shape mediator.tell(new Subscribe(…)) from outside an actor: the caller most in need of the refusal was the one who could not receive it. Left null, the reply still follows sender.

new Subscribe(topic, ref, replyTo?): Subscribe

Defined in: src/cluster/pubsub/Messages.ts:20

string

ActorRef

PubSubSubscriberRef | null

Subscribe

readonly ref: ActorRef

Defined in: src/cluster/pubsub/Messages.ts:22


readonly replyTo: PubSubSubscriberRef | null = null

Defined in: src/cluster/pubsub/Messages.ts:23


readonly topic: string

Defined in: src/cluster/pubsub/Messages.ts:21