You could try logging the messages as a simple starting point. Parsing the message makes it a little nicer to 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));
});
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…