Skip to content

Commit 39ab607

Browse files
committed
Add comment
1 parent f18c7c0 commit 39ab607

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
@@ -517,6 +517,7 @@ func (api *api) watchWorkspace(rw http.ResponseWriter, r *http.Request) {
517517
}
518518
defer c.Close(websocket.StatusInternalError, "internal error")
519519

520+
// Makes the websocket connection write-only
520521
ctx := c.CloseRead(r.Context())
521522

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

0 commit comments

Comments
 (0)