rpc-websocket-client

JSON →
library 1.1.4 ·javascript
verified Jun 7, 2026

Fast JSON-RPC 2.0 WebSocket client written in TypeScript. Version 1.1.4 is the latest stable release (no recent updates). It provides async-await Promise-based RPC calls and notifications over WebSocket with automatic unique request IDs generated by uuid/v1. Key differentiators: lightweight, close-to-metal design for performance, optional noRpc() mode to skip JSON-RPC overhead, and ability to attach to an existing WebSocket instance (useful with Apollo GraphQL or REST libraries). Focuses on simplicity and TypeScript support, unlike alternatives like rpc-websockets which lack TypeScript declarations. Suitable for Node.js (>=6) and modern browsers with WebSocket.