I couldn't find any documentation related to if WebRTC is supported in macOS/macOS Catalyst, but all my tests related to that fail.
I also experience the same as in this post: https://developer.apple.com/forums/thread/695871?login=true
Meanwhile in iOS it works well.