PubSub
Overview
Design
Topic Registry
Code Snippet
// create an actor on the actor system of the node1.
actor1, err := node1.Spawn(ctx, "actor1", Subscriber())
topic := "test-topic"
// subscribe to the topic
err = actor1.Tell(ctx, node1.TopicActor(), &goaktpb.Subscribe{Topic: topic})Publish
Code Snippet
Last updated