Log dupe connection attempts

This commit is contained in:
Max Goodhart
2026-01-31 18:08:16 -08:00
parent 8315ab9bf0
commit c2c11e9c54

View File

@@ -163,6 +163,11 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
}
if (currentStreamwallWs != null) {
console.warn(
'Rejecting Streamwall connection (already connected) from',
request.ip,
tokenInfo,
)
ws.send(JSON.stringify({ error: 'streamwall already connected' }))
ws.close()
return