From experience I would not recommend using Peerjs, it is incompatible in some cases with cross browsers and usually gives irreparable errors which means that it is not the best option.
If you want something like Google Meet I would recommend 2 options:
2- github.com/muaz-khan/RTCMultiConnection (This second one is more basic to use)
I hope I’ve helped.
Read more here: Source link