Skip to content

Identify stale WebSockets #1201

Identify stale WebSockets

Identify stale WebSockets #1201

Triggered via pull request December 5, 2025 18:19
Status Failure
Total duration 54s
Artifacts

node.js.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 20 warnings
build (22.x): test/connections/websocket-heartbeat.test.ts#L13
Unexpected any. Specify a different type
build (22.x): test/connections/websocket-heartbeat.test.ts#L9
Return values from promise executor functions cannot be read
build (22.x): src/connection-manager/connections.ts#L156
Unexpected string concatenation
build (22.x): src/connection-manager/connections.ts#L149
Unary operator '++' used
build (22.x): src/connection-manager/connections.ts#L148
Unexpected string concatenation
build (22.x): src/connection-manager/connections.ts#L148
Replace `'WS·ERROR:·stale·connection·for:·'·+·url·+·'·last·receiveda·message·at:·'·+·heartbeat.toISOString()·+·'.·('·+·(Date.now()·-·heartbeat.getTime())/1000·+·'seconds·ago).·Terminating·this·WS·connection.'` with `⏎········'WS·ERROR:·stale·connection·for:·'·+⏎··········url·+⏎··········'·last·receiveda·message·at:·'·+⏎··········heartbeat.toISOString()·+⏎··········'.·('·+⏎··········(Date.now()·-·heartbeat.getTime())·/·1000·+⏎··········'seconds·ago).·Terminating·this·WS·connection.',⏎······`
build (22.x): src/connection-manager/connections.ts#L141
Unexpected string concatenation
build (22.x): src/connection-manager/connections.ts#L141
Replace `'WS·INFO:·heartbeat·for:·'·+·url·+·'·last·received·at:·'·+·(Date.now()·-·heartbeat.getTime())·+·'ms·ago'` with `⏎······'WS·INFO:·heartbeat·for:·'·+⏎········url·+⏎········'·last·received·at:·'·+⏎········(Date.now()·-·heartbeat.getTime())·+⏎········'ms·ago',⏎····`
build (22.x): src/connection-manager/connections.ts#L139
Unexpected string concatenation
build (22.x): src/connection-manager/connections.ts#L139
Replace `'WS·INFO:·Total·number·of·live·WS·connections:·'·+·webSocketHeartbeat.size` with `⏎····'WS·INFO:·Total·number·of·live·WS·connections:·'·+·webSocketHeartbeat.size,⏎··`
build (20.x)
The strategy configuration was canceled because "build._22_x" failed
build (20.x): test/connections/websocket-heartbeat.test.ts#L13
Unexpected any. Specify a different type
build (20.x): test/connections/websocket-heartbeat.test.ts#L9
Return values from promise executor functions cannot be read
build (20.x): src/connection-manager/connections.ts#L156
Unexpected string concatenation
build (20.x): src/connection-manager/connections.ts#L149
Unary operator '++' used
build (20.x): src/connection-manager/connections.ts#L148
Unexpected string concatenation
build (20.x): src/connection-manager/connections.ts#L148
Replace `'WS·ERROR:·stale·connection·for:·'·+·url·+·'·last·receiveda·message·at:·'·+·heartbeat.toISOString()·+·'.·('·+·(Date.now()·-·heartbeat.getTime())/1000·+·'seconds·ago).·Terminating·this·WS·connection.'` with `⏎········'WS·ERROR:·stale·connection·for:·'·+⏎··········url·+⏎··········'·last·receiveda·message·at:·'·+⏎··········heartbeat.toISOString()·+⏎··········'.·('·+⏎··········(Date.now()·-·heartbeat.getTime())·/·1000·+⏎··········'seconds·ago).·Terminating·this·WS·connection.',⏎······`
build (20.x): src/connection-manager/connections.ts#L141
Unexpected string concatenation
build (20.x): src/connection-manager/connections.ts#L141
Replace `'WS·INFO:·heartbeat·for:·'·+·url·+·'·last·received·at:·'·+·(Date.now()·-·heartbeat.getTime())·+·'ms·ago'` with `⏎······'WS·INFO:·heartbeat·for:·'·+⏎········url·+⏎········'·last·received·at:·'·+⏎········(Date.now()·-·heartbeat.getTime())·+⏎········'ms·ago',⏎····`
build (20.x): src/connection-manager/connections.ts#L139
Unexpected string concatenation
build (20.x): src/connection-manager/connections.ts#L139
Replace `'WS·INFO:·Total·number·of·live·WS·connections:·'·+·webSocketHeartbeat.size` with `⏎····'WS·INFO:·Total·number·of·live·WS·connections:·'·+·webSocketHeartbeat.size,⏎··`
build (22.x): test/connections/websocket-heartbeat.test.ts#L129
Unexpected comment inline with code
build (22.x): test/connections/websocket-heartbeat.test.ts#L110
dynamic imports require a leading comment with the webpack chunkname
build (22.x): test/connections/websocket-heartbeat.test.ts#L107
dynamic imports require a leading comment with the webpack chunkname
build (22.x): test/connections/websocket-heartbeat.test.ts#L104
dynamic imports require a leading comment with the webpack chunkname
build (22.x): test/connections/websocket-heartbeat.test.ts#L37
Expected 'this' to be used by class method 'terminate'
build (22.x): test/connections/websocket-heartbeat.test.ts#L33
Expected 'this' to be used by class method 'send'
build (22.x): test/connections/websocket-heartbeat.test.ts#L17
Member 'handlers' is never reassigned; mark it as `readonly`
build (22.x): test/connections/websocket-heartbeat.test.ts#L6
Unexpected comment inline with code
build (22.x): test/connections/websocket-heartbeat.test.ts#L5
Unexpected comment inline with code
build (22.x): src/connection-manager/connections.ts#L151
This line has a comment length of 201. Maximum allowed is 130
build (20.x): test/connections/websocket-heartbeat.test.ts#L129
Unexpected comment inline with code
build (20.x): test/connections/websocket-heartbeat.test.ts#L110
dynamic imports require a leading comment with the webpack chunkname
build (20.x): test/connections/websocket-heartbeat.test.ts#L107
dynamic imports require a leading comment with the webpack chunkname
build (20.x): test/connections/websocket-heartbeat.test.ts#L104
dynamic imports require a leading comment with the webpack chunkname
build (20.x): test/connections/websocket-heartbeat.test.ts#L37
Expected 'this' to be used by class method 'terminate'
build (20.x): test/connections/websocket-heartbeat.test.ts#L33
Expected 'this' to be used by class method 'send'
build (20.x): test/connections/websocket-heartbeat.test.ts#L17
Member 'handlers' is never reassigned; mark it as `readonly`
build (20.x): test/connections/websocket-heartbeat.test.ts#L6
Unexpected comment inline with code
build (20.x): test/connections/websocket-heartbeat.test.ts#L5
Unexpected comment inline with code
build (20.x): src/connection-manager/connections.ts#L151
This line has a comment length of 201. Maximum allowed is 130