SSE Fixture

Exercises SSE open and receive authoring.

$ SSE_ORIGIN = [[ sse_origin = https://example.com ]]

---

Open price stream

protocol = sse
session = prices
GET {{ SSE_ORIGIN }}/prices/stream

^ & status == 200

---

Receive update

session = prices
receive
within = 5s

& sse.id -> $EVENT_ID

^ & sse.event == "price"
^ $EVENT_ID == "evt-1"
^ & body.symbol == "AAPL"
^ & body.price === NUMBER
