Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createWsClient(clientName, context) {
const { urlMap, connParams } = context
const subUrl = urlMap[clientName].subUri
return new SubscriptionClient(subUrl, {
connectionParams: connParams,
reconnect: true,
}, WebSocket)
}
function createWsClient(clientName, context) {
const { urlMap, connParams } = context
const subUrl = urlMap[clientName].subUri
return new SubscriptionClient(subUrl, {
connectionParams: connParams,
reconnect: true,
}, WebSocket)
}