Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data SubscriptionTree id conn Source #
SubscriptionTree (HashMap id conn) (HashMap Text (SubscriptionTree id conn)) |
Instances
Functor (SubscriptionTree id) Source # | |
Defined in Subscription fmap :: (a -> b) -> SubscriptionTree id a -> SubscriptionTree id b # (<$) :: a -> SubscriptionTree id b -> SubscriptionTree id a # | |
(Eq id, Eq conn) => Eq (SubscriptionTree id conn) Source # | |
Defined in Subscription (==) :: SubscriptionTree id conn -> SubscriptionTree id conn -> Bool # (/=) :: SubscriptionTree id conn -> SubscriptionTree id conn -> Bool # | |
(Show id, Show conn) => Show (SubscriptionTree id conn) Source # | |
Defined in Subscription showsPrec :: Int -> SubscriptionTree id conn -> ShowS # show :: SubscriptionTree id conn -> String # showList :: [SubscriptionTree id conn] -> ShowS # |
broadcast :: (conn -> Value -> IO ()) -> [Text] -> Value -> SubscriptionTree id conn -> IO () Source #
broadcast' :: [Text] -> Value -> SubscriptionTree id conn -> [(conn, Value)] Source #
empty :: SubscriptionTree id conn Source #
subscribe :: (Eq id, Hashable id) => [Text] -> id -> conn -> SubscriptionTree id conn -> SubscriptionTree id conn Source #
unsubscribe :: (Eq id, Hashable id) => [Text] -> id -> SubscriptionTree id conn -> SubscriptionTree id conn Source #