chore: replace httpapi.Heartbeat with httpapi.HeartbeatClose (#21676)

Relates to https://github.com/coder/coder/pull/21676

* Replaces all existing usages of `httpapi.Heartbeat` with `httpapi.HeartbeatClose`
* Removes `httpapi.HeartbeatClose`
This commit is contained in:
Cian Johnston
2026-01-26 12:11:40 +00:00
committed by GitHub
parent 49f135bcd4
commit 612aae2523
8 changed files with 96 additions and 98 deletions
+1 -1
View File
@@ -2028,7 +2028,7 @@ func (api *API) watchWorkspaceSSE(rw http.ResponseWriter, r *http.Request) {
// @Success 200 {object} codersdk.ServerSentEvent
// @Router /workspaces/{workspace}/watch-ws [get]
func (api *API) watchWorkspaceWS(rw http.ResponseWriter, r *http.Request) {
api.watchWorkspace(rw, r, httpapi.OneWayWebSocketEventSender)
api.watchWorkspace(rw, r, httpapi.OneWayWebSocketEventSender(api.Logger))
}
func (api *API) watchWorkspace(