UNPKG

@berish/rfp

Version:

Binary secure transport organization protocol for peer communication using function fingerprints

15 lines 487 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkConnection = void 0; const errors_1 = require("../../errors"); function checkConnection(peer, outcomeChunk) { if (!peer.connection) { if (outcomeChunk.notWaiting) return false; else throw new errors_1.ConnectionError('Peer is disconnected'); } return true; } exports.checkConnection = checkConnection; //# sourceMappingURL=checkConnection.js.map