-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
WebRtcServer #834
WebRtcServer #834
Conversation
Isn't it sufficient to just know that transport has closed, without knowing why exactly? If that is the case, current |
There is no "close" event in |
Hm, that is strange then. We do have |
Of course we have, but it's the |
Hm, if it was like that before then I guess it is fine, but I do find C++ less elegant and quite convoluted comparing to TypeScript. |
Take into account that we don't expose any public C++ API. If we did then indeed we should do something more similar to what is done in TS. |
I wonder if it is possible to measure if recv_mmsg in libuv gets more efficient with this since the chance that you pull multiple packets in a single read increases. Maybe @saghul knows |
We already use it for long. |
I know but if you have more packets coming into the single port you get more efficiency here which would be 🎉 |
That's my understanding too. |
…ortunhandled' events
…ous user may produce 2 identical hashes. Also, match tuple first when a STUN binding request is received since it's faster (we already computed the tuple.hash anyway).
MERGING |
Working on Rust support for this and wondering if |
This is most amazing thing @ibc Thanks for mediasoup :). This is totally magic. as soon as I saw this and I did bring down my another ec2 workers. and it is very cost effective |
hi @ALL, is there any way we can use webRtcServer in pipeTransport? |
Questions on the forum, don't abuse this PR |
oh, so sorry. thank @nazar-pc |
Details
So instead of having each
WebRtcTransport
listening into its own local ports, here we introduce a newWebRtcServer
class that listens in given protocol, IPs and ports and we extend therouter.createWebRtcTransport()
API so now it accepts awebRtcServer
as option (if so,listenIps
are ignored).Usage example in mediasoup-demo project: versatica/mediasoup-demo#110
TODO