Implementation of Multi-User Chat, according to XEP-0045. This API needs more thought and will change.
- matchesBare :: String -> StanzaPredicate
- joinGroupchat :: String -> String -> String -> XMPP Integer
- leaveGroupchat :: String -> XMPP ()
- isGroupchatMessage :: StanzaPredicate
- isGroupchatPrivmsg :: String -> StanzaPredicate
- sendGroupchatMessage :: String -> String -> XMPP ()
- sendGroupchatPrivateMessage :: String -> String -> String -> XMPP ()
Documentation
matchesBare :: String -> StanzaPredicateSource
Return true if the stanza is from a JID whose "username@server" part matches the given string.
:: String | Nickname to use |
-> String | JID of room |
-> String | Password of room. Use empty if no. |
-> XMPP Integer | Error number. Zero if joining room succeeded. |
Join groupchat.
leaveGroupchat :: String -> XMPP ()Source
Leave groupchat.
isGroupchatMessage :: StanzaPredicateSource
Return true if the stanza is a message of type "groupchat".
isGroupchatPrivmsg :: String -> StanzaPredicateSource
Return true if the stanza is a private message in the named room.
Send a groupchat message.