HTTP 405: lib-jitsi-meet tries to connect to host of web app

I am obtaining the jitsi meet JS lib from

https://meet.jit.si/libs/lib-jitsi-meet.min.js

However, it seems the lib tries to connect to my hosting server as I get this error message (in console):

POST https://my.domain/http-bind 405

const connOptions = {
	hosts: {
		domain: "meet.jit.si"
	}
};
const connection = new JitsiMeetJS.JitsiConnection(null, null, connOptions);
connection.connect();

Note: I am using the community server to test my web app. Will switch to self-hosted docker instance later on

For meet.jit.si you should be using the iframeAPI.

Thanks for your reply @damencho! The iframe api works, but I want to provide a custom web UI.
What are the connection options for the JS lib if I already have a docker instance running (and also the iframe API works on that docker instance)?

I tried lib-jitsi-meet/example.js at master · jitsi/lib-jitsi-meet · GitHub
I am not sure what/how to adapt the connection options.

That is fine. It is just meet.jit.si environment where the preferred way to connect is through iframeAPI as per the terms and conditions of that service.
You may want to try https://jaas.8x8.vc though. We can probably help you achieve the same thing there.

The following options work for me (seems some beginner’s errors)

				    const connOptions = {
					    hosts: {
					        domain: 'meet.jitsi', // same XMPP_DOMAIN in your .env file
					        muc: 'muc.meet.jitsi' // same as XMPP_MUC_DOMAIN in your .env file
					    },
						serviceUrl: "wss://<your-server>/xmpp-websocket"
					};