rtc-io / rtc-dcstream

Node streams2 layer for working with WebRTC data channels
Apache License 2.0
16 stars 3 forks source link

Check if the channel is already opened #6

Closed nathanoehlman closed 8 years ago

nathanoehlman commented 8 years ago

If the channel is already ready, don't leave it hanging waiting around for an open event that will never come.

DamonOehlman commented 8 years ago

LGTM :+1:

I was wondering whether the manual triggering of the event should be delayed to the next tick, but I think it should be ok as those handlers are never actually exposed (well not really) for external consumption.

nathanoehlman commented 8 years ago

Awesome :)