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/setRemoteDescriptioncreateAnswerDataChannel/createDataChannelNone 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 :
PromisevssuccessCallback/errorCallbackbecause it is everywhere in the spec, and currently there is a lot of boilerplate code and duplication, for example increateOfferand relatedeventsandobservers. 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 / errorCallbackthe same way as a promise ?)Dictionnariesin 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++