Module

Flame.Subscription.Unsafe.CustomEvent

Package
purescript-flame
Repository
easafe/purescript-flame

#broadcast Source

broadcast :: forall arg. SerializeState arg => EventType -> arg -> Effect Unit

Broadcast a CustomEvent to all applications

This is considered unsafe as there is no guarantee that the payload matches listeners' expectations

#broadcast' Source

broadcast' :: EventType -> Effect Unit

Broadcast a CustomEvent that has no data associated to all applications

This is considered unsafe as there is no guarantee that the payload matches listeners' expectations