@modbus-ts/electron-ipc-bridge
v0.0.5
Published
The electron-ipc-bridge package for modbus-ts.
Maintainers
Readme
@modbus-ts/electron-ipc-bridge
Typed Electron bridge helpers for main and renderer Modbus channels.
Installation
pnpm add @modbus-ts/electron-ipc-bridgeCore Exports
- ElectronIpcBridge
- ElectronMainBridgeOptions
- ElectronMainBridge
- createElectronRendererBridge
- createElectronMainBridge
Minimal Example
import { createElectronRendererBridge } from '@modbus-ts/electron-ipc-bridge'
const bridge = createElectronRendererBridge(window.modbusIpc)
await bridge.invoke('modbus:connect')Behavior
- Standardizes connect, send, close channels
- Converts payloads to Uint8Array safely
- Supports custom channel names
Packages
- high-level Modbus client
- shared contracts, types, and errors
- FC1/FC2/FC3/FC4/FC5/FC6/FC15/FC16 frame encode/decode for TCP/RTU/ASCII
- serial request queue with priority
- polling engine and range merge
- Node TCP transport with reconnect
- Node UDP transport
- browser WebSocket transport with reconnect
- typed Electron main/renderer bridge
- Electron IPC transport adapter
- WebSocket to TCP binary relay gateway
- register-value codec helpers
- shared async and comparison utilities
