UNPKG

@berish/rfp

Version:

Binary secure transport organization protocol for peer communication using function fingerprints

17 lines 885 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertDataToSend = void 0; const serber_1 = require("../../serber"); const peerDecoratorToResultPlugin_1 = require("../../serber/peerDecoratorToResultPlugin"); function convertDataToSend(peer, data, deferredList, incomeRequest) { const replyPath = incomeRequest && incomeRequest.chunk && incomeRequest.chunk.path; return peer.serberInstance.serializeAsync(data, { [serber_1.SYMBOL_SERBER_PEER]: peer, [serber_1.SYMBOL_SERBER_DEFERRED_LIST]: deferredList, [serber_1.SYMBOL_SERBER_REGISTRATOR]: null, [serber_1.SYMBOL_SERBER_CHUNK_REPLY_PATH]: replyPath, [peerDecoratorToResultPlugin_1.SYMBOL_SERBER_REQUEST]: incomeRequest, }, { throwWhenError: true }); } exports.convertDataToSend = convertDataToSend; //# sourceMappingURL=convertDataToSend.js.map