Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
socketParameters(service) {
const {port, hostname, protocol} = parseURI(service)
return protocol === 'xmpps:'
? {port: Number(port) || 5223, host: hostname}
: undefined
}
}
socketParameters(service) {
const {port, hostname, protocol} = parseURI(service)
return protocol === 'xmpp:'
? {port: port ? Number(port) : null, host: hostname}
: undefined
}