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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Subscribe(
topic,ref,replyTo?):Subscribe
Defined in: src/cluster/pubsub/Messages.ts:20
Parameters
Section titled “Parameters”string
replyTo?
Section titled “replyTo?”PubSubSubscriberRef | null
Returns
Section titled “Returns”Subscribe
Properties
Section titled “Properties”
readonlyref:ActorRef
Defined in: src/cluster/pubsub/Messages.ts:22
replyTo
Section titled “replyTo”
readonlyreplyTo:PubSubSubscriberRef|null=null
Defined in: src/cluster/pubsub/Messages.ts:23
readonlytopic:string
Defined in: src/cluster/pubsub/Messages.ts:21
