[Pkg-javascript-commits] [sockjs-client] 265/434: Fix #35 - forgot to json stringify/parse

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit 5a50c99560075e73b3d3ecaeabb8123afee9fffa
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Thu Jan 5 11:35:04 2012 +0000

    Fix #35 - forgot to json stringify/parse
---
 tests/html/smoke-throughput.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/html/smoke-throughput.html b/tests/html/smoke-throughput.html
index 712bc9d..7445644 100644
--- a/tests/html/smoke-throughput.html
+++ b/tests/html/smoke-throughput.html
@@ -63,11 +63,11 @@
     };
     var payload = Array(4096).join('x');
     function send() {
-        sjs.send({t: (new Date()).getTime(), payload:payload})
+        sjs.send(JSON.stringify({t: (new Date()).getTime(), payload:payload}));
     };
     var i = 0;
     function xonmessage(e) {
-            var msg = e.data;
+            var msg = JSON.parse(e.data);
             var td = (new Date()).getTime() - msg.t;
             $('#latency').text(''+i +'  ' + td + ' ms');
             i += 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list