Skip to content
Myr

ipc-disconnect-get.js

This file

Path

test/fixtures/ipc-disconnect-get.js

7 lines · 178 bytes · JavaScript

Last changed by

Refactor reference counting with IPC (#1089)ehmickybefore adoption18e607c

History of this file

Take it

Refactor reference counting with IPC (#1089)ehmickybefore adoption18e607c

lines 1–7why, one step back
1#!/usr/bin/env node
2import process from 'node:process';3import {getOneMessage} from '../../index.js';45process.disconnect();6console.log(process.channel);7await getOneMessage();