| // Copyright 2021 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Example realm that provisions the components and eagerly runs the client. |
| { |
| // Two children: a server and client. "rot13_client" has "eager" startup so it |
| // will be started along with the realm. |
| children: [ |
| { |
| name: "rot13_server", |
| url: "#meta/rot13_server.cm", |
| }, |
| { |
| name: "rot13_client", |
| url: "#meta/rot13_client.cm", |
| startup: "eager", |
| }, |
| ], |
| |
| // Route the Rot13 protocol from server to client. |
| offer: [ |
| { |
| protocol: "fuchsia.examples.rot13.Rot13", |
| from: "#rot13_server", |
| to: "#rot13_client", |
| }, |
| { |
| protocol: "fuchsia.logger.LogSink", |
| from: "parent", |
| to: [ |
| "#rot13_server", |
| "#rot13_client", |
| ], |
| }, |
| ], |
| } |