Safe Haskell | None |
---|
Documentation
:: Options | URL path prefix for this page |
-> (Document -> IO ()) | called for access of the page |
-> ScottyM () |
connect /foobar (...) gives a scotty session that:
POST http://.../foobar/ <- bootstrap the interaction GET http://.../foobar/act/<id#>/<act#> <- get a specific action POST http://.../foobar/reply/<id#>/<reply#> <- send a reply as a JSON object
kCometPlugin :: IO StringSource
kCometPlugin
provides the location of the Kansas Comet jQuery plugin.
getReply :: Document -> Int -> IO ValueSource
wait for a virtual-to-this-document's port numbers' reply.
debugDocument :: IO DocumentSource
Generate a Document
that prints what is would send to the server.