Skip to content

Commit 18c997d

Browse files
committed
multiple agents
1 parent 5880f5f commit 18c997d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +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/master", "publish", msg);
42+
this.ref.command(this.hostUri, "/unit/master1", "publish", msg);
43+
44+
// add agents by following the format of the hostURI specified in TutorialPlane
45+
// line 12: @SwimRoute("/unit/:id")
46+
47+
// this.ref.command(this.hostUri, "/unit/master2", "publish", msg);
48+
// this.ref.command(this.hostUri, "/unit/master3", "publish", msg);
49+
4350
indicator = (indicator + 1) % 1000;
4451

4552
// Throttle events to four every three seconds

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