mirror of
https://github.com/fluencelabs/examples
synced 2025-04-25 02:32:16 +00:00
Fix service names
This commit is contained in:
parent
99f5dd91e7
commit
2d125f5225
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user