when calling peer.signal i get this error.
error DOMException: Failed to set remote offer sdp: Called in wrong state: kHaveLocalOffer
Just by the looks of it: the peer you're calling signal on seems to have it's offer ready, but could not yet send it.
peer.signal is the input, but did you try peer.on("signal") (output) yet?
You're trying to pass a remote offer into peer.signal() of a peer that has a local offer - you should be passing an answer. It's possible that both peers are initiators, or you're passing the peer's signal data into itself. Double check your signalling flow.
Thank you, @lroellin @t-mullen my issue was with the initiator, I was setting it to true on every peer, so I did not have a receiver and after Double checking my signal flow, everything worked fine.