Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-79] appcd-subprocess: Add IPC support

GitHub Issuen/a
TypeNew Feature
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2017-05-08T20:45:11.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 1.0.0
Componentsappcd-subprocess
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2017-05-08T20:35:23.000+0000
Updated2017-10-26T03:00:49.000+0000

Description

We need the ability to set up an IPC channel with a spawned process. The way this will work starts by passing a ipc: true in the dispatcher request payload. This will cause the spawn to force the connection use file descriptor 3 as an IPC channel. The caller receives the subprocess descriptor: ctx.proc. It extends an event emitter, so you can listen for "message" and send using ctx.proc.send().

Comments

  1. Chris Barber 2017-05-08

    https://github.com/appcelerator/appc-daemon/pull/8

JSON Source