Skip to content

Commit

Permalink
FIX: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Jun 11, 2020
1 parent 2a5bb11 commit d1baea7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/TlsSocketWrapper.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down Expand Up @@ -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();
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit d1baea7

Please sign in to comment.