FIX: minor
This commit is contained in:
parent
2a5bb11dd9
commit
d1baea7ecb
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Simple wrapper to mimick Socket class from NET package, since TLS package havs slightly different API.
|
||||
* Simple wrapper to mimick Socket class from NET package, since TLS package has slightly different API.
|
||||
* We implement several methods that TCP sockets are expected to have. We will proxy call them as soon as
|
||||
* realt TLS socket will be created (TLS socket created after connection).
|
||||
* real TLS socket will be created (TLS socket created after connection).
|
||||
*/
|
||||
class TlsSocketWrapper {
|
||||
constructor(tls) {
|
||||
@ -68,8 +68,7 @@ class TlsSocketWrapper {
|
||||
|
||||
connect(port, host, callback) {
|
||||
// resulting TLSSocket extends <net.Socket>
|
||||
this._socket = tls.connect({ port: port, host: host, rejectUnauthorized: false }, () => {
|
||||
// socket.write('{ "id": 5, "method": "blockchain.estimatefee", "params": [2] }\n')
|
||||
this._socket = this._tls.connect({ port: port, host: host, rejectUnauthorized: false }, () => {
|
||||
console.log('TLS Connected to ', host, port);
|
||||
return callback();
|
||||
});
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "electrum-client",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"description": "Electrum protocol client for React Native & Node.js",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user