wsclient

command
v0.0.0-...-cfa0f90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2026 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL