blob: 4cf372f11689f2b4875b60b6feb93b6d0cf60b9a [file] [log] [blame]
// Example realm that provisions an Echo client and service and eagerly runs the client.
{
// Route Echo service from server to client.
"offer": [
{
"service_protocol": "/svc/fidl.examples.routing.echo.Echo",
"from": "#echo_server",
"to": [ "#echo_client" ]
},
],
// Two children: a server and client. "echo_client" has "eager" startup so it
// will be started along with the realm.
"children": [
{
"name": "echo_server",
"url": "fuchsia-pkg://fuchsia.com/components_routing_example#meta/echo_server.cm",
},
{
"name": "echo_client",
"url": "fuchsia-pkg://fuchsia.com/components_routing_example#meta/echo_client.cm",
"startup": "eager",
},
],
}