UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

14 lines 479 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getUnnamedSocketName = getUnnamedSocketName; exports.sendMessage = sendMessage; const json_1 = require("../../../util/json"); function getUnnamedSocketName(c) { return `${c.remoteAddress ?? '?'}@${c.remotePort ?? '?'}`; } function sendMessage(c, message) { return (0, json_1.superBigJsonStringify)(message, '\n', msg => { c.write(msg); }); } //# sourceMappingURL=send.js.map