sendXMPPMessage: Send Message

Description Usage Arguments See Also Examples

Description

This function sends a message via XMPP protocol.

Usage

1
2
  sendXMPPMessage(jid, password, to, message,
    log_level = XMPP_LEVEL_ERROR, timeout = 15)

Arguments

jid

single length character such as "xxxxxx@chat.facebook.com" or "xxxxx@gmail.com"

password

single length character which is the password for jid

to

single length character which is the jid of receiver such as "-<fbid>@chat.facebook.com" or "xxxx@gmail.com"

message

multiple length character, the messages to to.

log_level

level of displayed message to R console. One of XMPP_LEVEL_DEBUG, XMPP_LEVEL_INFO, XMPP_LEVEL_WARN, and XMPP_LEVEL_ERROR

timeout

time(seconds) to wait for sending message. The longest time for blocking is 2*timeout

See Also

facebookMessage for sending message via facebook

Examples

1
2
3
4
5
## Not run: 
sendXMPPMessage("xxx@chat.facebook.com", "xxx", "-12345xxx1324@chat.facebook.com",
 "test message via R")

## End(Not run)

wush978/RMessenger documentation built on May 4, 2019, 12:01 p.m.