Skip to content

Commit 6be2651

Browse files
committed
clarify instructions to add agents
1 parent 18c997d commit 6be2651

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

server/src/main/java/swim/tutorial/DataSource.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ void sendCommands() throws InterruptedException {
3939
// *CommandLane* addressable by "publish" OF the
4040
// *Web Agent* addressable by "/unit/master" RUNNING ON the
4141
// *(Swim) server* addressable by hostUri
42-
this.ref.command(this.hostUri, "/unit/master1", "publish", msg);
42+
this.ref.command(this.hostUri, "/unit/master", "publish", msg);
4343

44-
// add agents by following the format of the hostURI specified in TutorialPlane
45-
// line 12: @SwimRoute("/unit/:id")
44+
// To instantiate more agents, follow the format of the URI pattern specified in TutorialPlane
45+
// see line 12: @SwimRoute("/unit/:id")
4646

47-
// this.ref.command(this.hostUri, "/unit/master2", "publish", msg);
48-
// this.ref.command(this.hostUri, "/unit/master3", "publish", msg);
47+
// EXAMPLES:
48+
// this.ref.command(this.hostUri, "/unit/secondAgent", "publish", msg);
49+
// this.ref.command(this.hostUri, "/unit/thirdAgent", "publish", msg);
4950

5051
indicator = (indicator + 1) % 1000;
5152

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy