Helper library for OpenWrt ubus communication over WebSocket using RPC. Designed to work with OpenWrt WebSocket Daemon (OWSD). Version 1.0.29. Provides a simple API (connect, get, resolveReferences, disconnect) for interacting with ubus objects on OpenWrt devices. Similar to direct ubus usage but over WebSocket. Supports USP data models (TR-181).
npm install iopsys-ws-communicatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates connecting to an OpenWrt device over WebSocket, fetching a ubus object, resolving references, and disconnecting.
Always pass the session object returned by connect() to get(), resolveReferences(), and disconnect().
Ensure OWSD is installed and running on the device; verify network/firewall allows WebSocket connections.
Monitor recursion depth; consider adding a timeout or limiting reference resolution.
Use try/catch around async calls; check error message for authentication failure or timeout.
Ensure connect() returned a valid session object and that you pass it to get() as second argument.
Verify IP, PORT, and that OWSD is running. Increase timeout if necessary (not library configurable).
Provide valid credentials. Note that credentials may be for the device's web interface (ubus).
No dependency data recorded yet.