-- Kills the associated threads and closes the connection.
-- | End the current XMPP session. Kills the associated threads and closes the
-- connection.
--
-- Note that XMPP clients (that has signalled availability) should send
-- \"Unavailable\" presence prior to disconnecting.
--
-- The connectionClosedHandler will not be called (to avoid possibly
-- reestablishing the connection)
-- reestablishing the connection).
endSession::Session->IO()
endSessionsession=do-- TODO: This has to be idempotent (is it?)
stopThreadssession
@ -105,8 +108,8 @@ endSession session = do -- TODO: This has to be idempotent (is it?)
@@ -105,8 +108,8 @@ endSession session = do -- TODO: This has to be idempotent (is it?)
-- | Close the connection to the server. Closes the stream (by enforcing a
-- write lock and sending a </stream:stream> element), waits (blocks) for three
-- seconds, and then closes the connection.
-- write lock and sending a \</stream:stream\> element), waits (blocks) for