Skip to content

Backpressure: Use new "onbufferedamountlow" event instead of setTimeout hack #39

@feross

Description

@feross

Hooray – the event we wanted was added to the WebRTC data channel spec and implemented by Chrome! See: https://code.google.com/p/chromium/issues/detail?id=496700

Now, let's support it in simple-peer!

Ideally, we can eliminate the hack for Firefox too, but we need to check if they've implemented the new event yet, or not.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions