|
|
|
@ -85,6 +85,9 @@ data SessionConfiguration = SessionConfiguration |
|
|
|
-- | Enable roster handling according to rfc 6121. See 'getRoster' to |
|
|
|
-- | Enable roster handling according to rfc 6121. See 'getRoster' to |
|
|
|
-- acquire the current roster |
|
|
|
-- acquire the current roster |
|
|
|
, enableRoster :: Bool |
|
|
|
, enableRoster :: Bool |
|
|
|
|
|
|
|
-- | Callback called on a roster Push. The callback is called after the |
|
|
|
|
|
|
|
-- roster is updated |
|
|
|
|
|
|
|
, onRosterPush :: Maybe (QueryItem -> IO ()) |
|
|
|
-- | Track incomming presence stancas. |
|
|
|
-- | Track incomming presence stancas. |
|
|
|
, enablePresenceTracking :: Bool |
|
|
|
, enablePresenceTracking :: Bool |
|
|
|
-- | Callback that is invoked when the presence status of a peer changes, |
|
|
|
-- | Callback that is invoked when the presence status of a peer changes, |
|
|
|
@ -112,6 +115,7 @@ instance Default SessionConfiguration where |
|
|
|
return . Text.pack . show $ curId |
|
|
|
return . Text.pack . show $ curId |
|
|
|
, plugins = [] |
|
|
|
, plugins = [] |
|
|
|
, enableRoster = True |
|
|
|
, enableRoster = True |
|
|
|
|
|
|
|
, onRosterPush = Nothing |
|
|
|
, enablePresenceTracking = True |
|
|
|
, enablePresenceTracking = True |
|
|
|
, onPresenceChange = Nothing |
|
|
|
, onPresenceChange = Nothing |
|
|
|
, keepAlive = Just 30 |
|
|
|
, keepAlive = Just 30 |
|
|
|
|