Module

Flame.Subscription.Internal.Listener

Package
purescript-flame
Repository
easafe/purescript-flame

#createMessageListener Source

createMessageListener :: forall message. ApplicationId -> (message -> Effect Unit) -> Effect Unit

Listener for external messages

Implemented as a custom event because messages can be raised from anywhere

#createSubscription Source

createSubscription :: forall message. (message -> Effect Unit) -> Subscription message -> Effect Unit

Events from Application.subscribe