(err workspacesdk.WatchError)
| 327 | } |
| 328 | |
| 329 | func (u *updater) errorThenClose(err workspacesdk.WatchError) { |
| 330 | _ = u.enc.Encode(workspacesdk.ConnectionWatchEvent{Error: &err}) |
| 331 | // ignore encoding errors above because in any case, we are going to close the connection. |
| 332 | _ = u.conn.Close(websocket.StatusNormalClosure, "error") |
| 333 | } |
no test coverage detected