Skip to content

Commit 0551613

Browse files
committed
Add comment
1 parent 0760f8d commit 0551613

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/workspaces.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ func (api *api) watchWorkspace(rw http.ResponseWriter, r *http.Request) {
555555
}
556556
defer c.Close(websocket.StatusInternalError, "internal error")
557557

558+
// Makes the websocket connection write-only
558559
ctx := c.CloseRead(r.Context())
559560

560561
// Send a heartbeat every 15 seconds to avoid the websocket being killed.

0 commit comments

Comments
 (0)