-
-
Save orblivion/11161808 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subscribeSink_ fun = | |
awaitForever $ (\x -> | |
case decode (L.fromStrict x) of | |
Just (SubscribeResponse (resp, _)) -> do | |
_ <- liftIO $ mapM (onMsg subOpts . fun) resp | |
return () | |
Nothing -> | |
return ()) | |
subscribeSink = subscribeSink_ id | |
encryptedSubscribeSink c i = subscribeSink_ $ decodeEncrypted c i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment