TURN Credentials creator
npm install @rojo2/turn-credentials@rojo2/turn-credentialsA library to create TURN credentials RFC.
``javascript
import turnCredentials from '@rojo2/turn-credentials'
const credentials = turnCredentials('username', {
secret: process.env.TURN_SECRET
})
`
Installing it as a global dependency
`sh`
npm i -g @rojo2/turn-credentials
turn-credentials
This small CLI program returns a JSON with two properties username and credential, thisjq
can be piped into a program like and the finally use it with testing utilities like turnutils_uclient (you can
find it in coTURN).
`sh``
for s in $(turn-credentials
export $s
done
turnutils_uclient -t -v -y -X -M -p 443 -u $turn_username -w $turn_credential -W
Made with :heart: by rojo2