Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Question: Why call user after answer made? #6

Open
VincentHoang opened this issue Apr 28, 2020 · 0 comments
Open

Question: Why call user after answer made? #6

VincentHoang opened this issue Apr 28, 2020 · 0 comments

Comments

@VincentHoang
Copy link

On the following snippet (scripts/index.js)

socket.on("answer-made", async data => {
  await peerConnection.setRemoteDescription(
    new RTCSessionDescription(data.answer)
  );

  if (!isAlreadyCalling) {
    callUser(data.socket); // ??
    isAlreadyCalling = true;
  }
});

Why does the receiver have to make a call back to the initial caller? I looked through several tutorials, and none of them mentions that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant