Deadpan-DDP-0.2.0.1: Write clients for Meteor's DDP Protocol

Safe HaskellNone
LanguageHaskell2010

Web.DDP.Deadpan.Callbacks

Description

This module is intended to provide a set of callbacks for various server events.

The set of callbacks provided fulfills the functionality require to be able to implement a local data-store reflecting server-sent data-update messages.

Web.DDP.Deadpan.Callbacks is used frequently in Web.DDP.Deadpan.

Synopsis

Documentation

clientRPCMethod :: Text -> Maybe [EJsonValue] -> Text -> Maybe EJsonValue -> DeadpanApp () Source

As explained in the Meteor DDP documentation:

     method:     string                        (method name)
     params:     optional array of EJSON items (parameters to the method)
     id:         string                        (an arbitrary client-determined identifier for this method call)
     randomSeed: optional JSON value           (an arbitrary client-determined seed for pseudo-random generators)