mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
Fix non-working echo greeting service
This commit is contained in:
parent
37e848c9f5
commit
65c2de58c0
2619
aqua-examples/echo-greeter/client-peer/package-lock.json
generated
2619
aqua-examples/echo-greeter/client-peer/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fluencelabs/aqua-lib": "^0.1.14",
|
"@fluencelabs/aqua-lib": "^0.1.14",
|
||||||
"@fluencelabs/fluence": "^0.11.0",
|
"@fluencelabs/fluence": "^0.12.0",
|
||||||
"@fluencelabs/fluence-network-environment": "^1.0.10",
|
"@fluencelabs/fluence-network-environment": "^1.0.10",
|
||||||
"it-all": "^1.0.5"
|
"it-all": "^1.0.5"
|
||||||
},
|
},
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { setLogLevel, FluencePeer } from "@fluencelabs/fluence";
|
import { setLogLevel, Fluence, FluencePeer } from "@fluencelabs/fluence";
|
||||||
import { krasnodar, Node } from "@fluencelabs/fluence-network-environment";
|
import { krasnodar, Node } from "@fluencelabs/fluence-network-environment";
|
||||||
import {
|
import {
|
||||||
echo,
|
echo,
|
||||||
@ -94,8 +94,8 @@ async function main() {
|
|||||||
await Fluence.start({ connectTo: krasnodar[2] });
|
await Fluence.start({ connectTo: krasnodar[2] });
|
||||||
console.log(
|
console.log(
|
||||||
"created a fluence client %s with relay %s",
|
"created a fluence client %s with relay %s",
|
||||||
FluencePeer.default.connectionInfo.selfPeerId,
|
Fluence.getStatus().peerId,
|
||||||
FluencePeer.default.connectionInfo.connectedRelay
|
Fluence.getStatus().relayPeerId
|
||||||
);
|
);
|
||||||
|
|
||||||
let echo_result = await echo(
|
let echo_result = await echo(
|
||||||
|
Loading…
Reference in New Issue
Block a user