Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
maxNbClients: maxNbClientsPerPlatform
}
})
return disconnect(reason)
}
otherChannels = channels.filter(c => ![...organizationIds, ...userIds].includes(c))
if (otherChannels.length) {
channelsToJoin.push(...otherChannels.map(c => prefixChannel(c, { platformId, env })))
}
debug(`WebSocket ${socket.client.id} subscribing to ${channelsToJoin.join(' ')}`)
socket.join(channelsToJoin)
apm.endTransaction()
}