Example of full mesh webrtc network?

I didn’t mean guides on mdn, rather the api reference. It would help you understand what’s needed to make what you want work.

I more or less have a concept of how webrtc api works, I’m just really bad at javascript. Rather the problem I’m having isn’t that I don’t know how to set up a connection between two peers but that I don’t know how to write a client side function that will send and receive all of the offers/answers properly.

For example: I have 3 peers on my page, I need each of them to send and receive the appropriate offers to the appropriate peer on the other four pages. And then to appropriately receive the answers and form a connection.

I understand that with sufficient knowledge of webrtc api and some effort I can hack together some system for doing this. I was just looking for an example of how this should be done properly before trying to “reinvent the wheel”.