| // Example realm that provisions an Echo client and service and eagerly runs the client. | |
| { | |
| // Two children: a server and client. | |
| children: [ | |
| { | |
| name: "echo_server", | |
| url: "#meta/echo_server.cm", | |
| }, | |
| { | |
| name: "echo_client", | |
| url: "#meta/echo_client.cm", | |
| }, | |
| ], | |
| // Route Echo service from server to client. | |
| offer: [ | |
| { | |
| protocol: "fidl.examples.routing.echo.Echo", | |
| from: "#echo_server", | |
| to: "#echo_client", | |
| }, | |
| { | |
| protocol: "fuchsia.logger.LogSink", | |
| from: "parent", | |
| to: [ | |
| "#echo_client", | |
| "#echo_server", | |
| ], | |
| }, | |
| ], | |
| } |