{"id":49710,"library":"websocket-bench","title":"websocket-bench","description":"CLI tool for benchmarking WebSocket servers (Socket.IO, Engine.IO, Faye, Primus, WAMP). Version 0.2.0 appears to be the latest. It allows simulating many concurrent persistent connections, with customizable message generators. Offsets the complexity of writing custom benchmark scripts. Last updated years ago with no recent activity; use at your own risk.","status":"abandoned","version":"0.2.0","language":"javascript","source_language":"en","source_url":"git://github.com/M6Web/websocket-bench","tags":["javascript"],"install":[{"cmd":"npm install websocket-bench","lang":"bash","label":"npm"},{"cmd":"yarn add websocket-bench","lang":"bash","label":"yarn"},{"cmd":"pnpm add websocket-bench","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"websocket-bench is a CLI tool, not a library. Do not import programmatically; run via command line.","wrong":"require('websocket-bench')","symbol":"(CLI usage)","correct":"npx websocket-bench -a 2500 -c 200 http://localhost:3000"}],"quickstart":{"code":"ulimit -n 60000\nnpx websocket-bench -a 2500 -c 200 http://localhost:3000","lang":"bash","description":"Run a benchmark with 2500 total connections, 200 concurrent connections per second against a Socket.IO server."},"warnings":[{"fix":"Run 'ulimit -n 60000' before starting the benchmark to increase the limit.","message":"Limit of open file descriptors: benchmarks with many connections may fail due to OS limits.","severity":"gotcha","affected_versions":"*"},{"fix":"Consider using alternative tools like 'autocannon' or 'wrk' for WebSocket benchmarking, or fork and update the package.","message":"Package has not been updated for several years; may not work with modern Node.js versions.","severity":"deprecated","affected_versions":"<=0.2.0"},{"fix":"Ensure your generator module exports the required functions. See README for structure.","message":"Generator files must export specific functions (beforeConnect, onConnect, sendMessage, options) exactly as documented.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'0.2.0':16 'activ':48 'ago':44 'allow':23 'appear':17 'bench':3 'benchmark':7,39 'cli':4 'complex':35 'concurr':26 'connect':28 'custom':38 'customiz':30 'engine.io':11 'fay':12 'generat':32 'javascript':54 'last':41 'latest':21 'mani':25 'messag':31 'offset':33 'persist':27 'primus':13 'recent':47 'risk':53 'script':40 'server':9 'simul':24 'socket.io':10 'tool':5 'updat':42 'use':49 'version':15 'wamp':14 'websocket':2,8 'websocket-bench':1 'write':37 'year':43","created_at":"2026-06-07T17:03:12.740906+00:00","updated_at":"2026-06-07T17:03:12.740906+00:00","problems":[{"fix":"Use a different port, close other processes, or adjust worker count.","cause":"Multiple instances trying to use the same port or workers conflict.","error":"Error: listen EADDRINUSE :::<port>"},{"fix":"Install the dependency: npm install engine.io","cause":"Missing optional dependency for engine.io transport.","error":"Error: Cannot find module 'engine.io'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/M6Web/websocket-bench","github":"git://github.com/M6Web/websocket-bench","docs":null,"changelog":null,"pypi":null,"npm":"websocket-bench","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}