From f4da5f1dd17210a831cce2153f80d2477710d18c Mon Sep 17 00:00:00 2001 From: Lyndon Maydwell Date: Thu, 4 Dec 2014 04:31:39 +1100 Subject: [PATCH] New slides --- doc/mfug-141204-slides/index.html | 16 ++++++++++++++++ doc/mfug-141204-slides/slides.md | 22 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/doc/mfug-141204-slides/index.html b/doc/mfug-141204-slides/index.html index 20dd8e4..42346c5 100644 --- a/doc/mfug-141204-slides/index.html +++ b/doc/mfug-141204-slides/index.html @@ -194,6 +194,22 @@

Show me more!

clientRPCMethod "missingMethod" Nothing "testid2" Nothing void $ liftIO getLine +

Debugging App

+

deadpan

+

A command-line app deadpan is built alongside this library.

+
> deadpan
+Usage: deadpan [-h | --help] <URL>
+

This will connection to a DDP server, respond to pings, and print all incomming messages.

+
+

In Action

+
> deadpan websocket://localhost:3000/websocket
+{"server_id":"0"}
+{"msg":"connected","session":"9EccYbEWeePEHLJRb"}
+{"collection":"test","msg":"added","id":"qdfJLj7cQwLevYJEv","fields":{"name":"I am 2","i":2}}
+{"collection":"test","msg":"added","id":"KM9TKFNoywzX2tqwj","fields":{"name":"I am 8","i":8}}
+{"collection":"test","msg":"added","id":"zeM8HrqugzZpDXZPv","fields":{"name":"I am 3","i":3}}
+{"collection":"test","msg":"added","id":"HrEGrqPvBTfiCvyAk","fields":{"name":"I am 4","i":4}}
+

TODO

What's left

    diff --git a/doc/mfug-141204-slides/slides.md b/doc/mfug-141204-slides/slides.md index 8128ef6..41f5d43 100644 --- a/doc/mfug-141204-slides/slides.md +++ b/doc/mfug-141204-slides/slides.md @@ -212,6 +212,28 @@ Would be the most common. clientRPCMethod "missingMethod" Nothing "testid2" Nothing void $ liftIO getLine +# Debugging App + +## `deadpan` + +A command-line app `deadpan` is built alongside this library. + + > deadpan + Usage: deadpan [-h | --help] + +This will connection to a DDP server, respond to pings, and print all incomming messages. + +## In Action + + > deadpan websocket://localhost:3000/websocket + {"server_id":"0"} + {"msg":"connected","session":"9EccYbEWeePEHLJRb"} + {"collection":"test","msg":"added","id":"qdfJLj7cQwLevYJEv","fields":{"name":"I am 2","i":2}} + {"collection":"test","msg":"added","id":"KM9TKFNoywzX2tqwj","fields":{"name":"I am 8","i":8}} + {"collection":"test","msg":"added","id":"zeM8HrqugzZpDXZPv","fields":{"name":"I am 3","i":3}} + {"collection":"test","msg":"added","id":"HrEGrqPvBTfiCvyAk","fields":{"name":"I am 4","i":4}} + ... + # TODO ## What's left