RpcIpcMessageChannel.js 550 B

12345678910
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const index_1 = require("../index");
  4. const RpcIpcMessagePort_1 = require("./RpcIpcMessagePort");
  5. function createRpcIpcMessageChannel(servicePath, memoryLimit = 2048) {
  6. const port = RpcIpcMessagePort_1.createRpcIpcForkedProcessMessagePort(servicePath, memoryLimit);
  7. // linked by the child_process IPC implementation - no manual linking needed
  8. return index_1.createRpcMessageChannel(port, port);
  9. }
  10. exports.createRpcIpcMessageChannel = createRpcIpcMessageChannel;