This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
API: Accounts
accounts
var acct = XMPP.accounts;
This returns an array of objects, giving access to the following public properties on each object:
- jid: full JID, including resource
- password: password
- connectionHost: host
- connectionPort: port
- connectionSecurity: SSL (1 is SSL, 0 is none)
- address : JID without resource
- resource : Resource portion of JID
- autoLogin : Used in SamePlace to determine whether or not user is to be logged in automatically
- key : A unique key for this object/account preferences
The following properties are also obtained within xmpp4moz as preferences, prefixed by “xmpp.account” and then by some account-specific key. They must be set in another program (as they are in SamePlace but not in this xmpp4moz API): address, resource, autoLogin, connectionHost, connectionPort, connectionSecurity. autoLogin can be used within extensions (as in SamePlace), but it has no other role in xmpp4moz.
accounts.forEach
XMPP.accounts.forEach(function(account) { doSomethingWith(account); });
Perform some action for each of the accounts stored previously with the XMPP object.







