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) => {
|
||||
// Register handler for this call in aqua:
|
||||
// HelloWorld.recieveHello(%init_peer_id%)
|
||||
client.callServiceHandler.onEvent(
|
||||
"HelloWorld",
|
||||
"recieveHello",
|
||||
(args) => {
|
||||
// no computation is done inside the browser
|
||||
const [msg] = args;
|
||||
setHelloMessage(msg);
|
||||
}
|
||||
);
|
||||
client.callServiceHandler.onEvent("HelloPeer", "hello", (args) => {
|
||||
// no computation is done inside the browser
|
||||
const [msg] = args;
|
||||
setHelloMessage(msg);
|
||||
});
|
||||
setClient(client);
|
||||
})
|
||||
.catch((err) => console.log("Client initialization failed", err));
|
||||
|
Loading…
x
Reference in New Issue
Block a user