{"library":"websocket-mockup","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.3.1","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install websocket-mockup","imports":["const { WebSocketServer } = require('websocket-mockup')","const { WebSocket } = require('websocket-mockup')","const mockup = require('websocket-mockup'); const { WebSocketServer } = mockup;"]},{"cmd":"yarn add websocket-mockup","imports":[]},{"cmd":"pnpm add websocket-mockup","imports":[]}],"homepage":"https://github.com/medooze/websocket-mockup#readme","github":"https://github.com/medooze/websocket-mockup","docs":null,"changelog":null,"pypi":null,"npm":"websocket-mockup","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}