This is a client-side DDP inspector that will capture all DDP activity. You've heard the phrase "data over the wire", but have you seen what that data looks like? This will show you. This package will not be compiled into production.
meteor add lai:ddp-inspector
Press (Ctrl/Cmd) + D to toggle panel on the left. Search for any DDP message (uses regex searching of a local collection).
The panel will only show you 50 DDP messages at a time, the most recent ones first. If you want to see more DDP messages, simply call Session.setPersistent('lai:ddp-inspector.limit', YouDesiredNumber);
.
If you reload, your search will remain in the search box. However, your DDP messages will be gone.
By default, the DDP messages are not logged to the console, if you still would like to see them in the console, simply call Session.setPersistent('lai:ddp-inspector.console', true)
.
If you want the old school version that only outputs to the console, meteor add lai:ddp-inspector@0.6.0
.
The Reset button is there to clear the local collection of DDP messages in case it gets too big. Clearing it will speed up the search. I am still trying to figure out how to optimize the performance.
If you install constellation:console
, the DDP panel will plug right into it as a new tab. Thanks @JackAdams for this!
This package was made using the code from this StackOverflow post.
@JackAdams
MIT