Documentation
¶
Overview ¶
Command wsclient is a tiny WebSocket client for end-to-end and manual testing of the notification status broadcast endpoint (/api/v1/ws/notifications). It connects, sends a subscribe frame for the supplied notification id, and prints every server message it receives for the duration (default 30s).
Usage:
go run ./tests/e2e/wsclient <ws-url> <notification-id> [duration]
Example:
go run ./tests/e2e/wsclient \
ws://localhost:8080/api/v1/ws/notifications \
019e5f7d-3ef0-7e11-b0b1-d0b25bcbca0f 30s
Designed for E2E reporting: every received frame is printed as "[recv] <payload>" so a reader can diff the expected lifecycle transitions against actual server output.
Click to show internal directories.
Click to hide internal directories.