Skip to content
Myr

ipc-echo-twice.js

This file

Path

test/fixtures/ipc-echo-twice.js

7 lines · 226 bytes · JavaScript

Last changed by

Debounce `message` events (#1087)ehmickybefore adoptione8bab97

History of this file

Take it

Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68

line 1why, one step back
1#!/usr/bin/env node

Debounce `message` events (#1087)ehmickybefore adoptione8bab97

line 2why, one step back
2import {sendMessage, getOneMessage} from '../../index.js';

Add promise-based IPC (#1059)ehmickybefore adoptionacc2b68

line 3why, one step back
3

Add `result.ipc`/`error.ipc` (#1067)ehmickybefore adoption3ab34de

line 4why, one step back
4const message = await getOneMessage();

Debounce `message` events (#1087)ehmickybefore adoptione8bab97

lines 5–6why, one step back
5await sendMessage(message);
6const secondMessage = await getOneMessage();

Fix `break` statement with `subprocess.getEachMessage()` (#1082)ehmickybefore adoption7143492

line 7why, one step back
7await sendMessage(secondMessage);