How can I track / analyze Meteor DDP calls

478 views Asked by At

While programming a Meteor complex application it would be useful to track / analyze / sniff the DDP traffic in order optimize it and make the app fast and efficient. For example it would be very interesting to see the publications and methods calls flow.

In this situation what tools could be used?

3

There are 3 answers

0
Rajanand02 On

Adding kadira would be the best solution to monitor and optimize publish/subscribe, method call and ddp in Meteor apps.

Installation

meteor add meteorhacks:kadira

Read the Getting started guide to learn more about kadira.

If you want to analyze only the ddp you can use ddp-analyzer.

npm install -g ddp-analyzer

0
Joseph On

DDP is just JSON over WebSockets (or an emulation of it). You can simply use Dev Tools network tab to sniff out the messages.

1
Philip Nuzhnyy On

There's also a Chrome Devtools extension for monitoring DDP traffic - https://github.com/thebakeryio/meteor-ddp-monitor