8000 feat(healthcheck): add websocket report by coadler · Pull Request #7689 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat(healthcheck): add websocket report #7689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 30, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jum 8000 p to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! feat(healthcheck): add websocket report
  • Loading branch information
coadler committed May 30, 2023
commit 0ed839b5027f2c6783ffca61080513ca5b3cf60b
2 changes: 1 addition & 1 deletion coderd/healthcheck/websocket.go
6A72
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (WebsocketEchoServer) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
ctx := r.Context()
c, err := websocket.Accept(rw, r, &websocket.AcceptOptions{})
if err != nil {
httpapi.Write(ctx, rw, http.StatusBadRequest, "Invalid websocket.")
httpapi.Write(ctx, rw, http.StatusBadRequest, "unable to accept: "+err.Error())
return
}
defer c.Close(websocket.StatusGoingAway, "goodbye")
Expand Down
0