javascript - how to view meteor DDP traffic? -


meteor uses ddp on socks / websockets. how type of view of what's going on in browsers debug console? in network panel of chrome @ least there single "websocket" connection without info on traffic running on it.

i'm aware of arunoda's ddp analyzer , proxy looking other ways basic information on traffic. have thought chrome's debugging tools have bit more support protocols other http, , interested know else others find useful.

you try logging messages simple starting point. parsing message makes little nicer inspect.

if (meteor.isclient) {    // log sent messages   var _send = meteor.connection._send;   meteor.connection._send = function (obj) {     console.log("send", obj);     _send.call(this, obj);   };    // log received messages   meteor.connection._stream.on('message', function (message) {      console.log("receive", json.parse(message));    }); } 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -