UNPKG

node-fxplc

Version:

Node.js library for low-level Mitsubishi FX (MELSEC) PLC framed protocol communication

14 lines (13 loc) 443 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransportNull = void 0; // TransportNull.js - no-op transport for tests / mock usage class TransportNull { /** Simulate write (discard data) */ async write(_data) { } /** Always resolve with empty buffer */ async read(_size) { return Buffer.alloc(0); } /** No resource to close */ close() { } } exports.TransportNull = TransportNull;