This commit is contained in:
overtorment 2024-02-04 14:42:32 +00:00
parent 567e23d30e
commit a810b22e80
2 changed files with 6 additions and 4 deletions

View File

@ -13,6 +13,7 @@ Electrum Protocol Client for React Native
* batch requests
* works in RN and nodejs
* both clearnet TCP and TLS
* zero dependencies
## protocol spec
@ -45,3 +46,6 @@ one of the ways to shim it is via `package.json`:
}
```
# license
MIT

View File

@ -1,11 +1,9 @@
'use strict';
/**
* NET & TLS dependencies should be injected via constructor
* for RN it can be something like this in shim.js:
* global.net = require('react-native-tcp');
* global.tls = require('react-native-tcp/tls');
* for RN you can use react-native-tcp-socket
*
* for nodejs tests it should be regular node's net * tls:
* for nodejs it should be regular node's net & tls:
* const net = require('net');
* const tls = require('tls');
* */