WebSocket Fixture

Demonstrates WebSocket open and request-reply exchange authoring.

$ WS_ORIGIN = wss://lorem-api.com

---

Open socket

protocol = ws
session = chat
GET {{ WS_ORIGIN }}/ws

---

Send request

session = chat
within = 1s

~~~
<Root seed="0">
  <Document>
      <Text>
        1. Sentence:
        <Sentence min="3" max="10"/>
      </Text>
  </Document>
</Root>
~~~

& body -> $MESSAGE

! echo "Received WebSocket message: $MESSAGE"