mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 20:32:08 -04:00
Forcibly disconnect on ping timeout
This commit is contained in:
@@ -177,7 +177,7 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
|
|||||||
console.warn(
|
console.warn(
|
||||||
`Streamwall timeout: no pong within ${STREAMWALL_PING_TIMEOUT_MS}ms. Closing connection.`,
|
`Streamwall timeout: no pong within ${STREAMWALL_PING_TIMEOUT_MS}ms. Closing connection.`,
|
||||||
)
|
)
|
||||||
ws.close()
|
ws.terminate()
|
||||||
}
|
}
|
||||||
}, STREAMWALL_PING_TIMEOUT_MS)
|
}, STREAMWALL_PING_TIMEOUT_MS)
|
||||||
ws.once('pong', () => {
|
ws.once('pong', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user