otalk / jingle.js

A generic Jingle session manager implementation, suitable for integration by other XMPP libraries.
MIT License
89 stars 17 forks source link

How not to use `stun:stun.l.google.com:19302` as `ice` server? #41

Open itsazzad opened 7 years ago

itsazzad commented 7 years ago

Here https://github.com/otalk/jingle.js/blob/master/index.js#L45 stun:stun.l.google.com:19302 is the default. And Here https://github.com/legastero/stanza.io/blob/master/lib/plugins/jingle.js#L9 using jingle without passing any conf; And so its by default getting the above specified ice server and I have only the option to add more ice server. So how not to use stun:stun.l.google.com:19302 as ice server? Or to clear the default the ice servers?

xdumaine commented 7 years ago

You can just pass an empty array iceServers: []

itsazzad commented 7 years ago

Are you meaning like below:

    client.use(jingle({
        iceServers: [],
    }));

Getting jingle SessionManager conf as undefined always in that way!