WebSocket Server Mockup

JSON →
library 1.3.1 ·javascript
verified Jun 7, 2026

websocket-mockup is a lightweight mock WebSocket server and client implementation for testing, supporting both server-side and W3C WebSocket API shims. Version 1.3.1 is the latest stable release, with infrequent updates. It allows developers to simulate WebSocket connections without a real server, ideal for unit and integration tests. Key differentiators include simple API, event-driven request handling, and support for custom host routing. Unlike heavier solutions like mock-socket, this package focuses on mimicking the Node.js ws library server interface.