Fix service names

This commit is contained in:
Pavel Murygin 2021-08-06 12:40:28 +03:00
parent 99f5dd91e7
commit 2d125f5225

View File

@ -20,15 +20,11 @@ function App() {
.then((client) => { .then((client) => {
// Register handler for this call in aqua: // Register handler for this call in aqua:
// HelloWorld.recieveHello(%init_peer_id%) // HelloWorld.recieveHello(%init_peer_id%)
client.callServiceHandler.onEvent( client.callServiceHandler.onEvent("HelloPeer", "hello", (args) => {
"HelloWorld", // no computation is done inside the browser
"recieveHello", const [msg] = args;
(args) => { setHelloMessage(msg);
// no computation is done inside the browser });
const [msg] = args;
setHelloMessage(msg);
}
);
setClient(client); setClient(client);
}) })
.catch((err) => console.log("Client initialization failed", err)); .catch((err) => console.log("Client initialization failed", err));