$#! | |
$build, Strophe. | |
$iq, Strophe. | |
$msg, Strophe. | |
$pres, Strophe. | |
A | |
addConnectionPlugin, Strophe | |
addHandler, Strophe. | |
addNamespace, Strophe | |
addProtocolErrorHandler, Strophe. | |
addTimedHandler, Strophe. | |
attach, Strophe. | |
attrs, Strophe. | |
authenticate, Strophe. | |
B | |
bind, Strophe. | |
Builder, Strophe. | |
C | |
c, Strophe. | |
cnode, Strophe. | |
connect, Strophe. | |
Connection, Strophe. | |
copyElement, Strophe | |
createHtml, Strophe | |
D | |
debug, Strophe | |
deleteHandler, Strophe. | |
deleteTimedHandler, Strophe. | |
disconnect, Strophe. | |
E | |
error, Strophe | |
escapeNode, Strophe | |
F | |
fatal, Strophe | |
flush, Strophe. | |
forEachChild, Strophe | |
G | |
getBareJidFromJid, Strophe | |
getDomainFromJid, Strophe | |
getNodeFromJid, Strophe | |
getResourceFromJid, Strophe | |
getText, Strophe | |
getUniqueId, Strophe. | |
H | |
h, Strophe. | |
I | |
info, Strophe | |
isTagEqual, Strophe | |
L | |
log, Strophe | |
N | |
nextValidRid, Strophe. | |
P | |
pause, Strophe. | |
R | |
rawInput, Strophe. | |
rawOutput, Strophe. | |
registerSASLMechanism, Strophe. | |
registerSASLMechanisms, Strophe. | |
reset, Strophe. | |
restore, Strophe. | |
resume, Strophe. | |
root, Strophe. | |
S | |
send, Strophe. | |
sendIQ, Strophe. | |
sendPresence, Strophe. | |
serialize, Strophe | |
setProtocol, Strophe. | |
sortMechanismsByPriority, Strophe. | |
T | |
t, Strophe. | |
test, Strophe. | |
toString, Strophe. | |
tree, Strophe. | |
U | |
unescapeNode, Strophe | |
up, Strophe. | |
V | |
validAttribute, Strophe. | |
validTag, Strophe. |
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( name, ptype )
Add a stanza handler for the connection.
addHandler( handler, ns, name, type, id, from, options )
This function is used to extend the current namespaces in Strophe.NS.
addNamespace( name, value )
Register a handler function for when a protocol (websocker or HTTP) error occurs.
addProtocolErrorHandler( protocol, status_code, callback )
Add a timed handler to the connection.
addTimedHandler( period, handler )
Attach to an already created and authenticated BOSH session.
attach( jid, sid, rid, callback, wait, hold, wind )
Add or modify attributes of the current element.
attrs( moreattrs )
Set up authentication
authenticate( matched )
Sends an IQ to the XMPP server to bind a JID resource for this session.
bind()
Create a Strophe.Builder object.
Strophe.Builder = class Builder
Add a child to the current element and make it the new current element.
c( name, attrs, text )
Add a child to the current element and make it the new current element.
cnode( elem )
Starts the connection process.
connect( jid, pass, callback, wait, hold, route, authcid, disconnection_timeout = 3000 )
Create and initialize a Strophe.Connection object.
Strophe.Connection = class Connection
Copy an XML DOM element.
copyElement( elem )
Copy an HTML DOM element into an XML DOM.
createHtml( elem )
Log a message at the Strophe.LogLevel.DEBUG level.
debug( msg )
Delete a stanza handler for a connection.
deleteHandler( handRef )
Delete a timed handler for a connection.
deleteTimedHandler( handRef )
Start the graceful disconnection process.
disconnect( reason )
Log a message at the Strophe.LogLevel.ERROR level.
error( msg )
Escape the node part (also called local part) of a JID.
escapeNode( node )
Log a message at the Strophe.LogLevel.FATAL level.
fatal( msg )
Immediately send any pending outgoing data.
flush()
Map a function over some or all child elements of a given element.
forEachChild( elem, elemName, func )
Get the bare JID from a JID String.
getBareJidFromJid( jid )
Get the domain portion of a JID String.
getDomainFromJid( jid )
Get the node portion of a JID String.
getNodeFromJid( jid )
Get the resource portion of a JID String.
getResourceFromJid( jid )
Get the concatenation of all text children of an element.
getText( elem )
Generate a unique ID for use in iq/ elements.
getUniqueId( suffix )
Replace current element contents with the HTML passed in.
h( html )
Log a message at the Strophe.LogLevel.INFO level.
info( msg )
Compare an element’s tag name with a string.
isTagEqual( el, name )
User overrideable logging function.
log( level, msg )
User overrideable function that receives the new valid rid.
nextValidRid( rid )
Pause the request manager.
pause()
User overrideable function that receives raw data coming into the connection.
rawInput( data )
User overrideable function that receives raw data sent to the connection.
rawOutput( data )
Register a single SASL mechanism, to be supported by this client.
registerSASLMechanism( Mechanism )
Register the SASL mechanisms which will be supported by this instance of Strophe.Connection (i.e.
registerSASLMechanisms( mechanisms )
Reset the connection.
reset()
Attempt to restore a cached BOSH session.
restore( jid, callback, wait, hold, wind )
Resume the request manager.
resume()
Make the root element the new current element.
root()
Send a stanza.
send( elem )
Helper function to send IQ stanzas.
sendIQ( elem, callback, errback, timeout )
Helper function to send presence stanzas.
sendPresence( elem, callback, errback, timeout )
Render a DOM element and all descendants to a String.
serialize( elem )
Select protocal based on this.options or this.service
setProtocol()
Sorts an array of objects with prototype SASLMechanism according to their priorities.
sortMechanismsByPriority( mechanisms )
Add a child text element.
t( text )
Checks if mechanism able to run.
test()
Serialize the DOM tree to a String.
toString()
Return the DOM tree.
tree()
Unescape a node part (also called local part) of a JID.
unescapeNode( node )
Make the current parent element the new current element.
up()