Skip to content

cookbook: apply review suggestions from #443 - #467

Merged
vishr merged 1 commit into
masterfrom
cookbook/websocket-review-nits
Oct 7, 2026
Merged

vishr merged 1 commit into
masterfrom
cookbook/websocket-review-nits

Conversation

@vishr

@vishr vishr commented Oct 7, 2026

Copy link
Copy Markdown
Member

Follow-up to #443 (thanks @wakqasahmed), applying the two review suggestions that could not be pushed to the fork:

  • cookbook/websocket/net/server.go: the read path logged "failed to write WS message"; it now says "read". The docs page renders this file.
  • cookbook/websocket/net/server_test.go: use a deferred server.Close(), matching the gorilla test. The upgraded connection is hijacked, so Close does not wait on it.

go vet and go test -race ./cookbook/websocket/... pass.

https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq

Log "read" on the read path of the net websocket example (the docs
page renders this file), and use a deferred server.Close() in its test,
matching the gorilla test.

Follow-up to #443 by @wakqasahmed.

Claude-Session: https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq
@vishr
vishr merged commit 94b5f80 into master Oct 7, 2026
1 check passed
@vishr
vishr deleted the cookbook/websocket-review-nits branch October 7, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant