Forcibly disconnect on ping timeout

This commit is contained in:
Max Goodhart
2026-01-31 18:04:50 -08:00
parent a01ed7c6b4
commit 8315ab9bf0

View File

@@ -177,7 +177,7 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
console.warn(
`Streamwall timeout: no pong within ${STREAMWALL_PING_TIMEOUT_MS}ms. Closing connection.`,
)
ws.close()
ws.terminate()
}
}, STREAMWALL_PING_TIMEOUT_MS)
ws.once('pong', () => {