|
@@ -40,7 +40,7 @@ Peer.prototype._socketInit = function() {
|
|
|
};
|
|
|
var connection = new DataConnection(self._id, peer, self._socket, function(err, connection) {
|
|
|
if (!err) {
|
|
|
- self.emit('connection', connection);
|
|
|
+ self.emit('connection', connection, metadata);
|
|
|
}
|
|
|
}, options);
|
|
|
self.connections[peer] = connection;
|