Skip to content

Commit

Permalink
Added in first testing recv function to listen for incoming messages
Browse files Browse the repository at this point in the history
  • Loading branch information
linux4life798 committed Sep 2, 2016
1 parent 243b515 commit 08c859c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xmppcmd.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ XMPP_CMDS+=( get_nodes get_items get_item , )
XMPP_CMDS+=( get_subscriptions get_subscribers set_subscribers , )
XMPP_CMDS+=( get_affiliations get_affiliates set_affiliations , )
XMPP_CMDS+=( get_vcard set_vcard , )
XMPP_CMDS+=( send send_stanza_iq stanza_pubsub )
XMPP_CMDS+=( send send_stanza_iq stanza_pubsub , )
XMPP_CMDS+=( recv )

# DEPRECIATED method
# Using the commandline utility sendxmpp
Expand Down Expand Up @@ -132,6 +133,11 @@ send() {
fi
}

# Open stream and listen on jid
recv() {
$XMPPTOOLS_DIR/xmpprecv "${xmpp_user}@${xmpp_host}" ${xmpp_pass} -s
}

# This function allows you to input an unqualified jid, like bob
# and get the local qualified jid bob@example.com
# Example: jid=$(qualify_jid bob)
Expand Down

0 comments on commit 08c859c

Please sign in to comment.