I am using the example code for now, and right now my options look like this.
const options = {
hosts: {
domain: 'meet.jit.si',
muc: 'conference.meet.jit.si'
},
serviceUrl: "//meet.jit.si/http-bind"
};
I replaced bosh with serviceUrl since it was deprecated according to the documentation, however, this still gives me a Connection failed error. Any alternatives to this, any additional parameters? I also tried running this on my react app, and I get the exact same issue.
I was able to fix it by switching to websocket instead, but I still had a few issues with strophe not being able to read the shard value so I referred to this and managed to make it work
const options = {
hosts: {
domain: 'meet.jit.si',
muc: 'conference.meet.jit.si'
},
serviceUrl:'wss://meet.jit.si/xmpp-websocket?room=myroomname',
deploymentInfo: {
environment: 'meet-jit-si',
envType: 'prod',
releaseNumber: '2977',
shard: 'meet-jit-si-ap-mumbai-1-s31',
region: 'ap-south-1',
userRegion: 'ap-south-1',
crossRegion: (!'ap-south-1' || 'ap-south-1' === 'ap-south-1') ? 0 : 1
},
};
also I need to make sure that myroomname set in serviceurl is the same as that set in initJitsiConference [ the first parameter, which is given as “conference” in the example doc" ]. so something like this.
room = connection.initJitsiConference('myroomname', confOptions);
so you can now test it out by going to meet.jit.si/myroomname