Skip to content

Commit

Permalink
add trace method
Browse files Browse the repository at this point in the history
  • Loading branch information
fippo committed Apr 3, 2015
1 parent c1ba00c commit af4c6e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server.js
Expand Up @@ -137,6 +137,15 @@ io.sockets.on('connection', function (client) {
}
});

// support for logging full webrtc traces to stdout
// useful for large-scale error monitoring
client.on('trace', function (data) {
console.log('trace', JSON.stringify(
[data.type, data.session, data.prefix, data.peer, data.time, data.value]
));
});


// tell client about stun and turn servers and generate nonces
client.emit('stunservers', config.stunservers || []);

Expand Down

0 comments on commit af4c6e9

Please sign in to comment.