Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
DataChannel / implementation IETF conflict even / odd port problem #242
DataChannel can be constructed and wired before Dtls/Ice is started and DTLS role is determined.
But in section 4 of data protocol doc https://www.ietf.org/id/draft-ietf-rtcweb-data-protocol-09.txt
The trouble is that DataChannel could be fully constructed with params.id before this odd/even rule could potentially be enforced. Thus we might need to fire "DataChannel.onerror" if we wish to enforce this IETF rule. Plus we may have to throw an exception on construction if we are able to determine the params are invalid upon construction due to the established DTLS client/server role.
Here is a proposal:
In Section 11.2, add the following sentence:
"If parameters is invalid, throw an InvalidParameters exception."
In Section 11.3.1, the explanation of onerror should read as follows:
onerror of type EventHandler,