Skip to content

Listener-Offerer flow #6

@stuartpb

Description

@stuartpb

Yet another rearchitecture to match unwritten rules about how WebRTC is meant to be used:

  • First step for a client: POST to the phrase URL.
  • If the response is 201 (first end), start listening at the given location.
  • The server drags the internal UUID and connects it to the next POST.
  • If the response is 302 (second end), start listening, and create an Offer that you POST to the location as well.
  • First end gets the offer and POSTs an answer.
  • ICE escalation happens as it did previously.

If the second end doesn't end up POSTing an offer, the original end will 404 once the created connection times out, which is why it's acceptable for the second responder to declare itself after the connection is created (and not required to do it with the connection or something like that). The end will need to restart (re-POST).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions