w-websocket-client
JSON →A lightweight wrapper for WebSocket that works in both Node.js and browser environments. Current stable version is 1.0.29. It provides a simple constructor-based API with callbacks for open, close, message, and error events. In Node.js it depends on the 'ws' package, but in the browser it uses native WebSocket with no dependencies. Key differentiator: unified API across platforms with automatic fallback, and UMD distribution for direct browser script tags. Low download count but functional for simple WebSocket use cases.
Resources
packagew-websocket-client ↗
API endpoints
full doc /v1/registry/w-websocket-client