diff options
Diffstat (limited to 'Presence')
-rw-r--r-- | Presence/XMPPServer.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs index c81cb9ce..6d6d3bd7 100644 --- a/Presence/XMPPServer.hs +++ b/Presence/XMPPServer.hs | |||
@@ -9,6 +9,7 @@ module XMPPServer | |||
9 | , XMPPServerParameters(..) | 9 | , XMPPServerParameters(..) |
10 | , XMPPServer | 10 | , XMPPServer |
11 | , xmppConnections | 11 | , xmppConnections |
12 | , xmppEventChannel | ||
12 | , StanzaWrap(..) | 13 | , StanzaWrap(..) |
13 | , Stanza(..) | 14 | , Stanza(..) |
14 | , StanzaType(..) | 15 | , StanzaType(..) |
@@ -27,6 +28,7 @@ module XMPPServer | |||
27 | , makeMessage | 28 | , makeMessage |
28 | , JabberShow(..) | 29 | , JabberShow(..) |
29 | , Server | 30 | , Server |
31 | , flushPassThrough | ||
30 | ) where | 32 | ) where |
31 | 33 | ||
32 | import ConnectionKey | 34 | import ConnectionKey |
@@ -1804,6 +1806,9 @@ xmppConnections sv = tcpManager (grokPeer sv) (Just . Text.pack) resolvPeer (_xm | |||
1804 | resolvPeer :: Text -> IO (Maybe ConnectionKey) | 1806 | resolvPeer :: Text -> IO (Maybe ConnectionKey) |
1805 | resolvPeer str = fmap PeerKey <$> listToMaybe <$> resolvePeer str | 1807 | resolvPeer str = fmap PeerKey <$> listToMaybe <$> resolvePeer str |
1806 | 1808 | ||
1809 | xmppEventChannel :: XMPPServer -> TChan ((ConnectionKey, SockAddr), ConnectionEvent Event) | ||
1810 | xmppEventChannel sv = serverEvent $ _xmpp_sv sv | ||
1811 | |||
1807 | xmppServer :: ( MonadResource m | 1812 | xmppServer :: ( MonadResource m |
1808 | , MonadIO m | 1813 | , MonadIO m |
1809 | ) => XMPPServerParameters -> m XMPPServer | 1814 | ) => XMPPServerParameters -> m XMPPServer |