DOC
This commit is contained in:
parent
567e23d30e
commit
a810b22e80
@ -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
|
||||
|
||||
@ -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');
|
||||
* */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user