easyrtc.on("getIceConfig", function(connectionObj, callback) {
  
    // This object will take in an array of XirSys STUN and TURN servers
    var iceConfig = [];
 
    request({ 
        url: 'https://service.xirsys.com/ice',
        qs: {
            ident: "myUsername",
            secret: "mySecret",
            domain: "my.domain.com",
            application: "AppName",
            room: "RoomName",
            secure: 1
        }
    },
    function (error, response, body) {
        if (!error &amp;&amp; response.statusCode == 200) {
            // body.d.iceServers is where the array of ICE servers lives
            iceConfig = body.d.iceServers;  
            console.log(iceConfig);
            callback(null, iceConfig);
        }
    });
});


//-------


[
    {
        url: 'stun:turn1.xirsys.com'
    },                                                                                                                                                                                 
    {
        username: 'e7db750a-2fcc-40c6-8415-cab22743a68a',                                                                                                                                                               
        url: 'turn:turn1.xirsys.com:443?transport=udp',                                                                                                                                                                 
        credential: '287ae254-9380-4f81-af88-e1cc9ed27eb0'
    },                                                                                                                                                           
   {
        username: 'e7db750a-2fcc-40c6-8415-cab22743a68a',                                                                                                                                                               
        url: 'turn:turn1.xirsys.com:443?transport=tcp',                                                                                                                                                                 
        credential: '287ae254-9380-4f81-af88-e1cc9ed27eb0'
    }
]

/////////////