diff --git a/example/src/App.tsx b/example/src/App.tsx index 8ffa0b2..57bb787 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -714,6 +714,39 @@ const App = () => { color={inprogress ? 'green' : 'blue'} /> + + { + try { + if (initComplete) { + fula.checkConnection().then((r: any) => { + console.log('connection check'); + console.log(r); + if (r) { + console.log( + 'initialization is completed. send Foldersize command' + ); + fxblox + .getFolderSize('/uniondrive/chain') + .then((res: any) => { + console.log('Foldersize received'); + console.log(res); + }) + .catch((e: any) => { + console.log('Foldersize failed'); + console.log(e); + }); + } + }); + } else { + console.log('wait for init to complete'); + } + } catch (e) {} + }} + color={inprogress ? 'green' : 'blue'} + /> +