Hello!
Please help me understand the following:
I've got my janus instance running behind firewall with no public IP.
I've also configured STUN and TURN in janus.jcfg as described
here.
What I can't understand is what should I put when I'm creating new Janus gateway in a browser object as a server URL.
I'm using WebSocket as a transport.
Here is a code sample describing what I want to understand:
const janus = new Janus(
{
server: 'wss://whatShouldIPutHereAsADomainName:Port/janus-ws',
iceServers: [here goes STUN and TURN configuration same as in janus.jcfg],
success: function() {
// Done!
},
error: function(cause) {
// Error, can't go on...
},
destroyed: function() {
// I should get rid of this
}
});
Thank you!