Where to start with client programming?

Hi there,

I would like to write a jitsi client - without using jitsi-meet(-lib).

Let’s say I, would like to create the most simple html/js/webrtc app for 2 participants, extremely ugly and most insecure.

I do know web-rtc, but where do I start when my server is running?
Do I need to connect to prosody or to conference focus?

Is there any documentation how the flow to establish a connection would look like?
What Server APIs can I use? How can I explore the possibilities?