User Agent registration with external users management

In this case, User Agent is created using apiKey :
        var ua = new apiRTC.UserAgent({
            uri: 'apzkey:[put api key here]'
In order to start communicating with other users, User Agent has to register to the Apizee platform. ApiKey is used to isolate your project so you will be able to communicate with users that are registered with the same apiKey.
            id : 1 // OPTIONAL // This is used for setting userId
        }).then(function (session) {
            // ok
            console.log("Registration OK");
            connectedSession = session;
        }).catch(function (error) {
            // error
            console.log("Registration error");
Check documentation for a complete description of RegisterInformation possibilities

Live Demo