Skip to content

Commit cfeff25

Browse files
committed
Clarifying the json-rpc per maycon's feedback
1 parent 339d504 commit cfeff25

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/other-topics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
React native doesn't support WebAssembly. Libraries that require WebAssembly need to run in a WebView. This includes some components of the wallet-sdk. Messages are exchanged with the React Native thread through a JSON RPC client / server layer. The Wallet SDK can be used to abstract all the complexity of the WebView communication with the react-native thread.
66

7-
The webview is similar to a rest api, and its entry point is
8-
@docknetwork/wallet-sdk-core/lib/index.js
7+
The WebView is similar to a REST API, and its entry point is in the wallet-sdk-wasm package. Each module in the package has a service-rpc client to interact with the service.js that is running in the main thread (React Native):
98

10-
The main thread will interact with the services by using the client
11-
@docknetwork/wallet-sdk-core/lib/client
9+
`@docknetwork/wallet-sdk-wasm/lib/services/[moduleName]/service-rpc`
10+
interacts with
11+
`@docknetwork/wallet-sdk-wasm/lib/services/[moduleName]/service.js`
1212

1313
Notice that the `modules` folder is running in the main thread (react native) and will be using the json rpc client (`@docknetwork/wallet-sdk-core/lib/client`) to interact with `@docknetwork/wallet-sdk-core/lib/service` methods
1414

0 commit comments

Comments
 (0)