message-db-0.0.1.0: Client library for Message-DB installed in PostgreSQL.
Safe HaskellNone
LanguageHaskell2010

MessageDb.Subscription

Description

Subscribe to a category and react to messages.

Synopsis

Documentation

data Subscription Source #

Defines how to subscribe to a category.

Constructors

Subscription 

Fields

subscribe :: Category -> Subscription Source #

Construct a new subscription. For default values see the docs for Subscription.

start :: WithConnection -> Subscription -> IO Void Source #

Start the subscription. Notice this will never return. You may want to use something like Immortal to ensure this never dies.