-
Notifications
You must be signed in to change notification settings - Fork 6
Separate signal types from peerconnection #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…nner in Chrome sensible)
… code in peerconnection
… fixed one bad JSON.stringify
|
Thanks! Renamed to Sadly your comment on JSON.stringify didn't have a location attached to it (maybe reviewable is better at that), but I'm guessing you're referring to log statements... I've removed JSON.stringify from those locations. I also noticed two potential bugs, fixed one, and added a TODO for the other. PTAL. |
|
Strange, it's showing up on the line for me... I think you may have missed another comment I had above:
|
|
ooo, I did miss that, could call. fixed. PTAL. |
|
I think this is the diff we're looking for: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've made this signal:signals.Message in some places, not in others. I prefer signal but we should be consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm now using message::signals.Message everywhere.
|
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"signal message" reads weird..."signalling message" would be better (or "signal" for short).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
|
@trevj: ping? |
|
Sorry! Two easy comments, then 👍. src/webrtc/peerconnection.ts, line 392 [r4] (raw file): src/webrtc/peerconnection.ts, line 447 [r4] (raw file): var descriptionString :string;
try {
descriptionString = JSON.stringify(description);
} catch (e) {
descriptionString = '[unstringifiable object]';
}
this.closeWithError_('Failed to set remote description: ' +
descriptionString + '; Error: ' + e.toString());Comments from the review on Reviewable.io |
|
src/webrtc/peerconnection.ts, line 392 [r4] (raw file): src/webrtc/peerconnection.ts, line 447 [r4] (raw file): Comments from the review on Reviewable.io |
|
Thanks for your diligent reviewing; that caught two confusions that nearly crept into the code! Comments from the review on Reviewable.io |
Conflicts: Gruntfile.coffee package.json
|
src/webrtc/peerconnection.ts, line 444 [r4] (raw file): Comments from the review on Reviewable.io |
|
src/webrtc/peerconnection.ts, line 444 [r4] (raw file): Comments from the review on Reviewable.io |
Separate signal types from peerconnection
To be reviewed after: #145 is merged and this pull request is updated to be against the latest head of dev (this pull request builds on that one).
There were a number of places (in uproxy-networking) where peerconnection was being imported just for signaling types; this was bad because it results in huge amounts of confused code in the browserified outputs (e.g. module-environment dependent code in a core env). So, I moved the signal types to their own file and now import only that when needed (done in: UWNetworksLab/uProxy-networking#224)
Note: In merge; noticed that coverage was broken, so that has been fixed too.