|
|
|
@ -4,7 +4,7 @@ |
|
|
|
-- Core). |
|
|
|
-- Core). |
|
|
|
-- License: Apache License 2.0 |
|
|
|
-- License: Apache License 2.0 |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- Maintainer: jon.kristensen@nejla.com |
|
|
|
-- Maintainer: info@jonkri.com |
|
|
|
-- Stability: unstable |
|
|
|
-- Stability: unstable |
|
|
|
-- Portability: portable |
|
|
|
-- Portability: portable |
|
|
|
-- |
|
|
|
-- |
|
|
|
@ -41,9 +41,6 @@ module Network.Xmpp |
|
|
|
, endSession |
|
|
|
, endSession |
|
|
|
, setConnectionClosedHandler |
|
|
|
, setConnectionClosedHandler |
|
|
|
-- * JID |
|
|
|
-- * JID |
|
|
|
-- | A JID (historically: Jabber ID) is XMPPs native format |
|
|
|
|
|
|
|
-- for addressing entities in the network. It is somewhat similar to an e-mail |
|
|
|
|
|
|
|
-- address but contains three parts instead of two: |
|
|
|
|
|
|
|
, Jid(..) |
|
|
|
, Jid(..) |
|
|
|
, isBare |
|
|
|
, isBare |
|
|
|
, isFull |
|
|
|
, isFull |
|
|
|
@ -86,11 +83,11 @@ module Network.Xmpp |
|
|
|
, Message(..) |
|
|
|
, Message(..) |
|
|
|
, MessageError(..) |
|
|
|
, MessageError(..) |
|
|
|
, MessageType(..) |
|
|
|
, MessageType(..) |
|
|
|
-- *** creating |
|
|
|
-- *** Creating |
|
|
|
, answerMessage |
|
|
|
, answerMessage |
|
|
|
-- *** sending |
|
|
|
-- *** Sending |
|
|
|
, sendMessage |
|
|
|
, sendMessage |
|
|
|
-- *** receiving |
|
|
|
-- *** Receiving |
|
|
|
, pullMessage |
|
|
|
, pullMessage |
|
|
|
, waitForMessage |
|
|
|
, waitForMessage |
|
|
|
, waitForMessageError |
|
|
|
, waitForMessageError |
|
|
|
@ -102,9 +99,9 @@ module Network.Xmpp |
|
|
|
-- communication primitive: the presence stanza. |
|
|
|
-- communication primitive: the presence stanza. |
|
|
|
, Presence(..) |
|
|
|
, Presence(..) |
|
|
|
, PresenceError(..) |
|
|
|
, PresenceError(..) |
|
|
|
-- *** creating |
|
|
|
-- *** Creating |
|
|
|
, module Network.Xmpp.Presence |
|
|
|
, module Network.Xmpp.Presence |
|
|
|
-- *** sending |
|
|
|
-- *** Sending |
|
|
|
-- | Sends a presence stanza. In general, the presence stanza should have no |
|
|
|
-- | Sends a presence stanza. In general, the presence stanza should have no |
|
|
|
-- 'to' attribute, in which case the server to which the client is connected |
|
|
|
-- 'to' attribute, in which case the server to which the client is connected |
|
|
|
-- will broadcast that stanza to all subscribed entities. However, a |
|
|
|
-- will broadcast that stanza to all subscribed entities. However, a |
|
|
|
@ -112,7 +109,7 @@ module Network.Xmpp |
|
|
|
-- which case the server will route or deliver that stanza to the intended |
|
|
|
-- which case the server will route or deliver that stanza to the intended |
|
|
|
-- recipient. |
|
|
|
-- recipient. |
|
|
|
, sendPresence |
|
|
|
, sendPresence |
|
|
|
-- *** receiving |
|
|
|
-- *** Receiving |
|
|
|
, pullPresence |
|
|
|
, pullPresence |
|
|
|
, waitForPresence |
|
|
|
, waitForPresence |
|
|
|
-- ** IQ |
|
|
|
-- ** IQ |
|
|
|
@ -142,7 +139,7 @@ module Network.Xmpp |
|
|
|
, iqResultPayload |
|
|
|
, iqResultPayload |
|
|
|
-- * Threads |
|
|
|
-- * Threads |
|
|
|
, forkSession |
|
|
|
, forkSession |
|
|
|
-- * Misc |
|
|
|
-- * Miscellaneous |
|
|
|
, LangTag(..) |
|
|
|
, LangTag(..) |
|
|
|
, exampleParams |
|
|
|
, exampleParams |
|
|
|
) where |
|
|
|
) where |
|
|
|
|