Overview
LoadForge provides support for generic WebSocket testing via theWebSocketUser
from locust-plugins
. You can open WebSocket connections, send and receive messages, and simulate concurrency to measure performance under load.
Locust Test Script (locust.py)
Notes:
- Install dependencies:
pip install locust locust-plugins websockets
if you wish to test locally. - Replace
YOUR_WS_URL_HERE
and endpoint/ws
with your actual WebSocket URL and path.