Browse Source

export getFeatures from Network.Xmpp

master
Philipp Balzarek 10 years ago
parent
commit
b0e40e4c94
  1. 3
      source/Network/Xmpp.hs
  2. 2
      source/Network/Xmpp/Concurrent/Basic.hs

3
source/Network/Xmpp.hs

@ -59,6 +59,9 @@ module Network.Xmpp
, endSession , endSession
, waitForStream , waitForStream
, streamState , streamState
-- ** Feature
, StreamFeatures(..)
, getFeatures
-- ** Authentication handlers -- ** Authentication handlers
-- | The use of 'scramSha1' is /recommended/, but 'digestMd5' might be -- | The use of 'scramSha1' is /recommended/, but 'digestMd5' might be
-- useful for interaction with older implementations. -- useful for interaction with older implementations.

2
source/Network/Xmpp/Concurrent/Basic.hs

@ -56,7 +56,7 @@ getJid Session{streamRef = st} = do
s <- atomically $ readTMVar st s <- atomically $ readTMVar st
withStream' (gets streamJid) s withStream' (gets streamJid) s
-- | Return the JID assigned to us by the server -- | Return the stream features the server announced
getFeatures :: Session -> IO StreamFeatures getFeatures :: Session -> IO StreamFeatures
getFeatures Session{streamRef = st} = do getFeatures Session{streamRef = st} = do
s <- atomically $ readTMVar st s <- atomically $ readTMVar st

Loading…
Cancel
Save