From 5a945ecc28ca3079eb07dc1ee65e006e5f3e91d6 Mon Sep 17 00:00:00 2001 From: "tommi@webrtc.org" Date: Fri, 7 Oct 2011 13:23:11 +0000 Subject: [PATCH] A little upgrade to the HTML test page: * Signaling messages are added to the log with a '+' / '-' sign to expand/collapse the message. This makes the log easier to read and each message can be read separate from the others. * Loopback enabled by default since that's the most common use case. * Wrapped some lines at 80 for easier future diffing. Review URL: http://webrtc-codereview.appspot.com/214001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@711 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../samples/server/server_test.html | 39 +++++++++++++++---- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/peerconnection/samples/server/server_test.html b/peerconnection/samples/server/server_test.html index d5c18361f..b156dba1e 100644 --- a/peerconnection/samples/server/server_test.html +++ b/peerconnection/samples/server/server_test.html @@ -9,6 +9,7 @@ var localName; var server; var my_id = -1; var other_peers = {}; +var message_counter = 0; function trace(txt) { var elem = document.getElementById("debug"); @@ -23,14 +24,19 @@ function handleServerNotification(data) { } function handlePeerMessage(peer_id, data) { - trace("Message from '" + other_peers[peer_id] + "': " + data); + ++message_counter; + var str = "Message from '" + other_peers[peer_id] + "' "; + str += "