A simple RPC framework for Node.js using socket.io that follows a server-slave model. Version 1.0.3 is the latest stable release. It allows the server to call functions registered on slave clients via WebSocket. Key differentiators: lightweight, minimal API, built on socket.io. Note: The library is somewhat outdated and relies on socket.io v1.x, which may have compatibility issues with newer versions.
npm install socket-rpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a server and slave, registering a function on slave, and calling it from the server.
Pin socket.io to version 1.x in package.json.
Add .catch() to run() promises or handle errors on the slave side.
Evaluate if active development is needed; fork or migrate.
npm install socket-rpc --save
Ensure slave is connected and registered before server calls run().
Use a different port or kill existing process.