Identify stale WebSockets #1156
Annotations
10 errors and 1 warning
|
|
|
Run npm run lint:ci
Process completed with exit code 1.
|
|
Run npm run lint:ci:
src/connection-manager/connections.ts#L156
Unexpected string concatenation
|
|
Run npm run lint:ci:
src/connection-manager/connections.ts#L149
Unary operator '++' used
|
|
Run npm run lint:ci:
src/connection-manager/connections.ts#L148
Unexpected string concatenation
|
|
Run npm run lint:ci:
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.',⏎······`
|
|
Run npm run lint:ci:
src/connection-manager/connections.ts#L141
Unexpected string concatenation
|
|
Run npm run lint:ci:
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',⏎····`
|
|
Run npm run lint:ci:
src/connection-manager/connections.ts#L139
Unexpected string concatenation
|
|
Run npm run lint:ci:
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,⏎··`
|
|
Run npm run lint:ci:
src/connection-manager/connections.ts#L151
This line has a comment length of 201. Maximum allowed is 130
|
Loading