diff --git a/bruno/websocket_connect.bru b/bruno/websocket_connect.bru new file mode 100644 index 0000000..8fbe31d --- /dev/null +++ b/bruno/websocket_connect.bru @@ -0,0 +1,30 @@ +meta { + name: "WebSocket - Connect and Receive Updates" + type: websocket + seq: 1 +} + +vars { + token: "" +} + +websocket { + url: "{{ baseUrl }}/ws/sync?token={{ token }}" + body: { + type: "ping", + timestamp: "2026-01-30T20:00:00Z" + } + auth: { + type: bearer + token: "{{ token }}" + } + headers: { + Authorization: "Bearer {{ token }}" + } +} + +assert { + res.status == 101 + res.headers.contains("Connection", "upgrade") + res.headers.contains("Upgrade", "websocket") +}