blob: 2f73066a93daa49e086fd8f752fe84325bc4506d [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": [
// Offer the ELF runner to children.
{
"runner": "elf",
"from": "realm",
"to": [
"#echo_server",
"#echo_client",
]
},
{
"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",
},
],
}