@@ -150,6 +150,9 @@ DataConnection.prototype._configureDataChannel = function() {
this._dc.onmessage = function(e) {
self._handleDataMessage(e);
};
+ this._dc.onclose = function(e) {
+ self.emit('close');
+ };