Skip to main content

Overview

GraphQL subscriptions provide real-time data streams over WebSockets. LoadForge supports subscription load testing by leveraging Locust and the WebSocketUser from locust-plugins.

Locust Test Script (locust.py)


Notes:
  • Install dependencies: pip install locust locust-plugins websockets if you wish to test locally.
  • Replace host and GraphQL query with your subscription endpoint.