Created
March 21, 2012 11:39
-
-
Save dsabanin/2146349 to your computer and use it in GitHub Desktop.
Midge example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(fact "configuration" | |
server-port => number? | |
server-url => string? | |
server-static-path => string?) | |
(fact "on-connect handler" | |
(on-connect --connection--) => anything) | |
(fact "on-disconnect handler" | |
(on-disconnect --connection--) => anything) | |
(fact "on-message handler" | |
(on-message --connection-- "{\"data\": \"blah\", \"type\": \"hello\"}") => anything | |
(provided | |
(events/dispatch --connection-- {:data "blah" :type "hello"}) => truthy)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment