XMPP-0.0.1: XMPP libraryContentsIndex
MUC
Description
Implementation of Multi-User Chat, according to XEP-0045. This API needs more thought and will change.
Synopsis
matchesBare :: String -> StanzaPredicate
joinGroupchat :: String -> String -> XMPP (Maybe (IO [String]))
mucPresenceHandler :: HashTable String () -> StanzaHandler
isGroupchatMessage :: StanzaPredicate
isGroupchatPrivmsg :: String -> StanzaPredicate
sendGroupchatMessage :: String -> String -> XMPP ()
sendGroupchatPrivateMessage :: String -> String -> String -> XMPP ()
Documentation
matchesBare :: String -> StanzaPredicate
Return true if the stanza is from a JID whose "[email protected]" part matches the given string.
joinGroupchat
:: StringNickname to use
-> StringJID of room
-> XMPP (Maybe (IO [String]))If Nothing, joining room failed. If Just, a function that returns a list of room participants.
Join groupchat. If successful, return function for participant list. Currently there is no way to install an event handler for join and leave events.
mucPresenceHandler :: HashTable String () -> StanzaHandler
isGroupchatMessage :: StanzaPredicate
Return true if the stanza is a message of type "groupchat".
isGroupchatPrivmsg :: String -> StanzaPredicate
Return true if the stanza is a private message in the named room.
sendGroupchatMessage
:: StringJID of chat room
-> StringText of message
-> XMPP ()
Send a groupchat message.
sendGroupchatPrivateMessage
:: StringNick of recipient
-> StringJID of chat room
-> StringText of message
-> XMPP ()
Send a private message in a chat room.
Produced by Haddock version 0.7