swift run --package-path Samples/ SamplePair first
and in another process
swift run --package-path Samples/ SamplePair second
The actors discover and greet eachother then:
===-----------------------------------------------------===
| Sample App Showing Two Actors Talking |
| |
| USAGE: swift run SamplePair first|second |
===-----------------------------------------------------===
[first-actor on sact://system@127.0.0.1:1111] Received message: Hello
from Person(/user/Person-b["$receptionID": "*", "$path":
/user/Person-b]) on sact://system@127.0.0.1:2222!
[first-actor on sact://system@127.0.0.1:1111] Found:
Person(sact://system@127.0.0.1:2222/user/Person-b)
Motivation:
An even more simple 2 process example to showcase discovery.
To see this in action do:
and in another process
The actors discover and greet eachother then:
Motivation:
An even more simple 2 process example to showcase discovery.