-
Notifications
You must be signed in to change notification settings - Fork 3
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
lots of features :\ #5
base: develop
Are you sure you want to change the base?
Conversation
Thanks a lot for your work. I'll be able to take a look during this weekend, hoping I'll have enough time to add these most important features and make the library really usable. We'll find a way for handling Promises and callbacks in a generic manner before going further. |
Alright, I'll handle your changes tomorrow, I'll focus on writing every possible tests, merge your changes, then push once everything works. But I'll rewrite the EventEmitter natively later, since I want all the bindings to be native. |
Oh, and feel free to tell me how you'd like to figure inside the |
About Events: |
BTW I'll try and clean up this branch (linting), and maybe add a few tests. |
Actually, I think using the pattern you use for session descriptions works ;) I'll let you know. |
I was thinking about it :) |
I think that you were getting a segfault because you were trying to call a Callback function or resolving a Promise inside of a WebRTC thread. The |
I suspected something like that, but didn't want to sound too stupid ;) |
As said in #7, I'm prioritizing your work, then close the PR once reproduced. |
Hi !
I've been working quite a lot on your lib the past few days.
I wanted to do feature branches, and all, but ended up doing huge commits with mixed features, and no unit tests :p
In any case, I just wanted to let you know, so here's a PR. Obviously it's not mergeable as is, but I just wanted to inform you of my progress:
setLocalDescription
/setRemoteDescription
createAnswer
DataChannel
/createDataChannel
None of this is unit tested for now, but I made some manual / functional tests on a project of mine.
I have some general remarks / thoughts, also :
Promise
vssuccessCallback
/errorCallback
because it is everywhere in the spec, and currently there is a lot of boilerplate code and duplication, for example increateOffer
and relatedevents
andobservers
. I think it would be nice to find an abstract way to handle this, but this is probably beyond my knowledge :) (intuitively, I believe there should be a way to handlesuccessCallback / errorCallback
the same way as a promise ?)Dictionnaries
in the spec), probably with a helper class that would handle conversion and validation from / toLocal<Object>
, but once again I'm not sure how to do it in C++