Overview
GraphQL subscriptions provide real-time data streams over WebSockets. LoadForge supports subscription load testing by leveraging Locust and theWebSocketUser from locust-plugins.
Locust Test Script (locust.py)
Notes:
- Install dependencies:
pip install locust locust-plugins websocketsif you wish to test locally. - Replace
hostand GraphQL query with your subscription endpoint.