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
#allocateDependencies Source
allocateDependencies :: Boolean -> Authority UserInfo (HostPortPair Host Port) -> Effect Env
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 }