Skip to content

Spawned child standard stream access #1229

@kettek

Description

@kettek

Is your feature request related to a problem? Please describe.
I wanted to use this as the frontend to an IPC service. This service can connect through sockets or standard streams to transfer JSON messages. As far as I can tell, Tauri does not provide any way to set up bi-directional communication with a spawned process via stdout/stdin. The only available API is execute, however that is intended for simply spawning a process and retrieving its stdout once finished.

Describe the solution you'd like
I would like an API that would provide a way to set up bi-directional communication with the stdout/stdin/stderr of a spawned child process. This could be set up with EventEmitters, callbacks, or whatever the idiomatic Tauri-way is to handle the appropriate standard streams.

Describe alternatives you've considered
Ultimately switching to NW.js or Electron, as the target IPC service requires either sockets or standard stream usage.

Additional context
nada

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions