A WebSocket RPC communicator for Node.js and browser, version 1.0.38. Provides a simple RPC-like mechanism mapping server functions to client calls with authentication, function filtering, and client change events. Released on npm with moderate download activity. Key differentiators: built-in authentication and function filtering, support for both server and client UMD modules, and dependency on ws and w-websocket-client. Suitable for projects needing lightweight WebSocket-based RPC without a full framework.
npm install w-comor-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a WebSocket RPC server with authentication and a ping function, then client connects and calls the function.
Use 'w-comor-websocket/dist/w-comor-websocket-server.umd.js' or 'w-comor-websocket/dist/w-comor-websocket-client.umd.js'.
Ensure server authenticate returns a boolean via async/Promise.
Use descriptive keys like 'group.plus' instead of duplicates.
Always wrap arguments in an object: client.call('func', { p1: 1, p2: 2 })import WComorWebsocketServer from 'w-comor-websocket/dist/w-comor-websocket-server.umd.js'
Use import statement instead of require().
Ensure server is started on the correct port (e.g., 8080) and client URL matches.