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.
Traffic · last 30 days stale · no recent hits
total hits 8
actors 2 distinct systems
last hit 16d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · MY
Resources
packagew-websocket-client ↗
API endpoints
full doc /v1/registry/w-websocket-client