Skip to content
Myr

ipc-replay.js

This file

Path

test/fixtures/ipc-replay.js

7 lines · 236 bytes · JavaScript

Last changed by

Improve `buffer: false` option with IPC (#1094)ehmickybefore adoptiond8bdaf0

History of this file

Take it

Improve `buffer: false` option with IPC (#1094)ehmickybefore adoptiond8bdaf0

lines 1–7why, one step back
1#!/usr/bin/env node
2import {setTimeout} from 'node:timers/promises';3import {sendMessage, getOneMessage} from '../../index.js';45await sendMessage(await getOneMessage());6await setTimeout(1e3);7await sendMessage(await getOneMessage());