Method |
Description |
|
__construct ( Connection $xmpp ) |
Constructor |
|
_addContact ( string $jid, string $subscription, string $name = '', array $groups = [] ) |
Add given contact to roster |
|
fetch ( callable $cb = null ) |
|
|
getContact ( string $jid ) : array | null |
Retrieve contact via jid |
|
getPresence ( string $jid ) : array | false |
Return best presence for jid |
|
isContact ( string $jid ) : boolean |
Discover if a contact exists in the roster via jid |
|
rosterSet ( string $xml, callable $cb = null ) |
|
|
setPresence ( string $presence, integer $priority, string $show, string $status ) |
Set presence |
|
setSubscription ( string $jid, string $type, callable $cb = null ) |
|
|