$#! | |
$build, Strophe.Bosh | |
$iq, Strophe.Bosh | |
$msg, Strophe.Bosh | |
$pres, Strophe.Bosh | |
A | |
addConnectionPlugin, Strophe | |
addHandler, Strophe. | |
addNamespace, Strophe | |
addProtocolErrorHandler, Strophe. | |
addTimedHandler, Strophe. | |
attach, Strophe. | |
ATTACHED, Strophe. | |
attrs, Strophe. | |
AUTH, Strophe.NS | |
authcid, Strophe. | |
authenticate, Strophe. | |
AUTHENTICATING, Strophe. | |
AUTHFAIL, Strophe. | |
authzid, Strophe. | |
B | |
BIND, Strophe.NS | |
BOSH, Strophe.NS | |
bosh.js | |
Builder, Strophe. | |
C | |
c, Strophe. | |
CLIENT, Strophe.NS | |
cnode, Strophe. | |
connect, Strophe. | |
CONNECTED, Strophe. | |
CONNECTING, Strophe. | |
Connection, Strophe. | |
Connection Status Constants, Strophe | |
CONNFAIL, Strophe. | |
CONNTIMEOUT, Strophe. | |
Constants | |
copyElement, Strophe | |
createHtml, Strophe | |
D | |
debug, Strophe | |
DEBUG, Strophe. | |
deleteHandler, Strophe. | |
deleteTimedHandler, Strophe. | |
DISCO_INFO, Strophe.NS | |
DISCO_ITEMS, Strophe.NS | |
disconnect, Strophe. | |
DISCONNECTED, Strophe. | |
DISCONNECTING, Strophe. | |
E | |
error, Strophe | |
ERROR | |
escapeNode, Strophe | |
F | |
fatal, Strophe | |
FATAL, Strophe. | |
Files | |
flush, Strophe. | |
forEachChild, Strophe | |
Functions | |
G | |
getBareJidFromJid, Strophe | |
getDomainFromJid, Strophe | |
getNodeFromJid, Strophe | |
getResourceFromJid, Strophe | |
getText, Strophe | |
getUniqueId, Strophe. | |
H | |
h, Strophe. | |
HTTPBIND, Strophe.NS | |
I | |
info, Strophe | |
INFO, Strophe. | |
isTagEqual, Strophe | |
L | |
log, Strophe | |
Log Level Constants, Strophe | |
M | |
MUC, Strophe.NS | |
N | |
nextValidRid, Strophe. | |
P | |
pass, Strophe. | |
pause, Strophe. | |
priority, Strophe. | |
PROFILE, Strophe.NS | |
R | |
rawInput, Strophe. | |
rawOutput, Strophe. | |
REDIRECT, Strophe. | |
registerSASLMechanism, Strophe. | |
registerSASLMechanisms, Strophe. | |
reset, Strophe. | |
restore, Strophe. | |
resume, Strophe. | |
root, Strophe. | |
ROSTER, Strophe.NS |
Create a Strophe.Builder.
function $build( name, attrs )
Create a Strophe.Builder with an iq/ element as the root.
function $iq( attrs )
Create a Strophe.Builder with a message/ element as the root.
function $msg( attrs )
Create a Strophe.Builder with a presence/ element as the root.
function $pres( attrs )
Extends the Strophe.Connection object with the given plugin.
addConnectionPlugin: function addConnectionPlugin( name, ptype )
Add a stanza handler for the connection.
addHandler: function addHandler( handler, ns, name, type, id, from, options )
This function is used to extend the current namespaces in Strophe.NS.
addNamespace: function addNamespace( name, value )
Register a handler function for when a protocol (websocker or HTTP) error occurs.
addProtocolErrorHandler: function addProtocolErrorHandler( protocol, status_code, callback )
Add a timed handler to the connection.
addTimedHandler: function addTimedHandler( period, handler )
Attach to an already created and authenticated BOSH session.
attach: function attach( jid, sid, rid, callback, wait, hold, wind )
Add or modify attributes of the current element.
attrs: function attrs( moreattrs )
Authentication identity (User name).
this.authcid
Set up authentication
authenticate: function authenticate( matched )
Authorization identity.
this.authzid
Create a Strophe.Builder object.
Strophe.Builder = function ( name, attrs )
Add a child to the current element and make it the new current element.
c: function c( name, attrs, text )
Add a child to the current element and make it the new current element.
cnode: function cnode( elem )
Starts the connection process.
connect: function connect( jid, pass, callback, wait, hold, route, authcid )
Create and initialize a Strophe.Connection object.
Strophe.Connection = function ( service, options )
Copy an XML DOM element.
copyElement: function copyElement( elem )
Copy an HTML DOM element into an XML DOM.
createHtml: function createHtml( elem )
Log a message at the Strophe.LogLevel.DEBUG level.
debug: function debug( msg )
Delete a stanza handler for a connection.
deleteHandler: function deleteHandler( handRef )
Delete a timed handler for a connection.
deleteTimedHandler: function deleteTimedHandler( handRef )
Start the graceful disconnection process.
disconnect: function disconnect( reason )
Log a message at the Strophe.LogLevel.ERROR level.
error: function error( msg )
Escape the node part (also called local part) of a JID.
escapeNode: function escapeNode( node )
Log a message at the Strophe.LogLevel.FATAL level.
fatal: function fatal( msg )
Immediately send any pending outgoing data.
flush: function flush()
Map a function over some or all child elements of a given element.
forEachChild: function forEachChild( elem, elemName, func )
Get the bare JID from a JID String.
getBareJidFromJid: function getBareJidFromJid( jid )
Get the domain portion of a JID String.
getDomainFromJid: function getDomainFromJid( jid )
Get the node portion of a JID String.
getNodeFromJid: function getNodeFromJid( jid )
Get the resource portion of a JID String.
getResourceFromJid: function getResourceFromJid( jid )
Get the concatenation of all text children of an element.
getText: function getText( elem )
Generate a unique ID for use in iq/ elements.
getUniqueId: function getUniqueId( suffix )
Replace current element contents with the HTML passed in.
h: function h( html )
Log a message at the Strophe.LogLevel.INFO level.
info: function info( msg )
Compare an element’s tag name with a string.
isTagEqual: function isTagEqual( el, name )
User overrideable logging function.
log: function log( level, msg )
Authentication identity (User password).
this.pass
Pause the request manager.
pause: function pause()
Determines which SASLMechanism is chosen for authentication (Higher is better).
this.priority
Register a single SASL mechanism, to be supported by this client.
registerSASLMechanism: function registerSASLMechanism( mechanism )
Register the SASL mechanisms which will be supported by this instance of Strophe.Connection (i.e.
registerSASLMechanisms: function registerSASLMechanisms( mechanisms )
Reset the connection.
reset: function reset()
Attempt to restore a cached BOSH session.
restore: function restore( jid, callback, wait, hold, wind )
Resume the request manager.
resume: function resume()
Make the root element the new current element.
root: function root()