je_load_density.wrapper.user_template.sse_user_template

Server-Sent Events (SSE) user template.

Each task entry should look like:

{"method": "open",   "request_url": "https://api/stream"}
{"method": "wait",   "expect": "ready", "timeout": 5}
{"method": "close"}

Uses requests with streaming for the SSE GET, which is already in the base dependency tree.

Functions

set_wrapper_sse_user(user_detail_dict, **kwargs)

Classes

SseUserWrapper(*args, **kwargs)

Locust SSE user wrapper.

class je_load_density.wrapper.user_template.sse_user_template.SseUserWrapper(*args: Any, **kwargs: Any)

Bases: User

Locust SSE user wrapper.

host = 'http://localhost'
run_tasks() None
wait_time = 0.1
je_load_density.wrapper.user_template.sse_user_template.set_wrapper_sse_user(user_detail_dict: Dict[str, Any], **kwargs) type