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
Add `strict` option to `sendMessage()` (#1098)ehmickybefore adoptione085b10
lines 1–10why, one step back1#!/usr/bin/env node2import {setTimeout} from 'node:timers/promises';3import {sendMessage, getOneMessage} from '../../index.js';45const message = await getOneMessage();6await sendMessage(message);7const secondMessage = await getOneMessage();8await sendMessage(secondMessage);9await setTimeout(1e3);10await sendMessage('.');