Closed mccutchen closed 11 months ago
Merging #155 (d45c7b2) into main (c440f9a) will decrease coverage by
3.45%
. The diff coverage is78.27%
.
Gonna land this, despite code coverage regressions. We can follow up with expaneded websockets tests to improve some of the gaps. In particular, would be good to test the frame and message size limit logic.
Here we add a new
/websocket/echo
endpoint, which implements a basic WebSocket echo service.The endpoint is powered by our own basic, zero-dependency WebSocket implementation, which passes almost every test in the invaluable Autobahn Testsuite "fuzzingclient" set of integration tests, which will be run automatically as part of our continuous integration tests going forward.
The Autobahn Testsuite exceptions are documented here: https://github.com/mccutchen/go-httpbin/blob/c7f36ed865b75fde01e5890e8f5d1137cc2377d4/httpbin/websocket/websocket_autobahn_test.go#L27-L38
Closes #151.