Module

Sparrow.Client

Package
purescript-sparrow
Repository
athanclark/purescript-sparrow

#unpackClient Source

unpackClient :: forall deltaOut deltaIn initOut initIn. EncodeJson initIn => DecodeJson initOut => EncodeJson deltaIn => DecodeJson deltaOut => Env -> Topic -> Client initIn initOut deltaIn deltaOut -> Effect Unit

Re-exports from Sparrow.Types

#ClientReturn Source

type ClientReturn initOut deltaIn = { initOut :: initOut, sendCurrent :: deltaIn -> Effect Unit, unsubscribe :: Effect Unit }

#ClientArgs Source

type ClientArgs initIn initOut deltaIn deltaOut = { initIn :: initIn, onReject :: Effect Unit, receive :: ClientReturn initOut deltaIn -> deltaOut -> Effect Unit }

#Client Source

type Client initIn initOut deltaIn deltaOut = (ClientArgs initIn initOut deltaIn deltaOut -> (Maybe (ClientReturn initOut deltaIn) -> Effect (Maybe (Fiber Unit))) -> Effect Unit) -> Effect Unit