P2P RTC connection using a STUN server. #1018
Unanswered
Godwhitelight
asked this question in
Q&A
Replies: 1 comment
-
Before |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im trying to make an echo p2p connection using a STUN server.
I understood that it should go like that:
Both clients need to create an RTCPeerConnection.
Each client creates a data channel on their RTCPeerConnection.
Each client creates an offer, sets it as their local description, and sends it to the server.
The server forwards the offer from one client to the other.
Upon receiving an offer, a client sets it as their remote description, creates an answer, sets it as their local description, and sends it back to the server.
The server forwards the answer from one client to the other.
Upon receiving an answer, a client sets it as their remote description.
and im getting an error.
here is my server that sends the data to the 2 clients:
here is the client:
Beta Was this translation helpful? Give feedback.
All reactions