ipc-echo-twice-wait.js
This file
Path
test/fixtures/ipc-echo-twice-wait.js
10 lines · 322 bytes · JavaScript
Last changed by
Add `strict` option to `sendMessage()` (#1098)ehmickybefore adoptione085b10
History of this fileTake it
1234567891011#!/usr/bin/env nodeimport {setTimeout} from 'node:timers/promises';import {sendMessage, getOneMessage} from '../../index.js';
const message = await getOneMessage();await sendMessage(message);const secondMessage = await getOneMessage();await sendMessage(secondMessage);await setTimeout(1e3);await sendMessage('.');