package
0.0.0-20250311023717-5c21e974eed8
Repository: https://github.com/thrasher-corp/gocryptotrader.git
Documentation: pkg.go.dev

# Functions

CurryWsMockUpgrader curries a WsMockUpgrader with a testing.TB and a mock func bridging the gap between information known before the Server is created and during a request.
EchoHandler is a simple echo function after a read, this doesn't need to worry if writing to the connection fails.
WsMockUpgrader handles upgrading an initial HTTP request to WS, and then runs a for loop calling the mock func on each input.

# Type aliases

WsMockFunc is a websocket handler to be called with each websocket message.