Documentation
¶
Overview ¶
Package wstest provides test helpers for wspulse/hub.
Import this package only in _test.go files to avoid pulling test infrastructure into production binaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestHub ¶
NewTestHub creates an in-process test server for use in application tests. It returns the WebSocket URL (ws://...) ready for client.Dial. The server and its HTTP listener are automatically cleaned up when the test ends.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.