@tonappchain/adnl
Version:
ADNL TypeScript implementation
18 lines • 682 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ADNLClientTCP = void 0;
const client_1 = require("./client");
const net_1 = require("net");
class ADNLClientTCP extends client_1.ADNLClient {
constructor(url, peerPublicKey) {
super(new net_1.Socket(), url, peerPublicKey);
this.socket
.on('connect', this.onConnect.bind(this))
.on('ready', this.onHandshake.bind(this))
.on('close', this.onClose.bind(this))
.on('data', this.onData.bind(this))
.on('error', this.onError.bind(this));
}
}
exports.ADNLClientTCP = ADNLClientTCP;
//# sourceMappingURL=client-tcp.js.map