mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-22 10:51:54 +00:00
make it possible to catch an error on calls
This commit is contained in:
@ -34,7 +34,7 @@ export async function print(client: FluenceClient, str: string): Promise<void> {
|
||||
h.on('getDataSrv', 'relay', () => {
|
||||
return client.relayPeerId!;
|
||||
});
|
||||
h.on('getRelayService', 'hasReleay', () => {// Not Used
|
||||
h.on('getRelayService', 'hasRelay', () => {// Not Used
|
||||
return client.relayPeerId !== undefined;
|
||||
});
|
||||
h.on('getDataSrv', 'str', () => {return str;});
|
||||
@ -83,7 +83,7 @@ export async function printConstant(client: FluenceClient): Promise<void> {
|
||||
h.on('getDataSrv', 'relay', () => {
|
||||
return client.relayPeerId!;
|
||||
});
|
||||
h.on('getRelayService', 'hasReleay', () => {// Not Used
|
||||
h.on('getRelayService', 'hasRelay', () => {// Not Used
|
||||
return client.relayPeerId !== undefined;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user