piranna/DataChannel-polyfill — pull request #2 by theninj4 (2012-12-16 12:31:28+00:00)
Title: Closing dead websockets on the client

I've tweaked datachannel.js so that all websockets it creates are closeable. Currently if a datachannel is established and then later close()'d the websocket will stay open. If you're working with a lot of peer's you quickly get a crazy number of dead (yet still connected) websockets.