Supported platforms: javascript, flash, neko, php, c++, [node], [air]
Source
Version: 0.4.8
Documentation
- Browse/Download API documentation
- The hxmpp.examples repository provides tests and example usages.
A simple client login (SimpleLogin.hx):
class SimpleLogin {
static function main() {
var jid = new jabber.JID( 'romeo@example.com' );
var cnx = new jabber.SocketConnection( jid.domain );
var stream = new jabber.client.Stream( cnx );
stream.onOpen = function(){
trace( 'XMPP stream opened, proceed with authentication ....' );
var auth = new jabber.client.Authentication( stream, [
new jabber.sasl.MD5Mechanism()
] );
auth.onSuccess = function() {
trace( 'Succesfully authenticated as ['+jid+']' );
}
auth.onFail = function( info : String ) {
trace( 'Failed to authenticate ['+info+']' );
}
auth.start( 'mypassword', 'resource' );
}
stream.onClose = function(?e){
trace( 'XMPP stream closed ['+e+']' );
}
stream.open( jid );
}
}
// haxe -main SimpleLogin -neko test.n -lib hxmpp -D JABBER_DEBUG -D XMPP_DEBUG
XEPs implemented
- XEP-0004 Data Forms
- XEP-0012 LastActivity
- XEP-0016 PrivacyLists
- XEP-0030 ServiceDiscovery
- XEP-0045 MUChat **
- XEP-0049 Private XML Storage *
- XEP-0054 VCardTemp *
- XEP-0060 PubSub ***
- XEP-0071 XHTML-IM
- XEP-0077 In-Band Registration
- XEP-0082 XMPP Date and Time Profiles
- XEP-0085 ChatStateNotification *
- XEP-0092 SoftwareVersion
- XEP-0106 JID Escaping
- XEP-0114 Jabber Component Protocol
- XEP-0115 Entity Capabilities *
- XEP-0124 BOSH *
- XEP-0163 PersonalEvent *
- XEP-0191 Simple Communications Blocking *
- XEP-0199 Ping
- XEP-0202 Entity Time
- XEP-0203 DelayedDelivery
- XEP-0206 BOSH ***
License
HXMPP is licensed under GNU Lesser General Public License v3.
Author/Contact
mail:tong@disktree.net
This project accepts and *encourages* contributions! (usage, source, love, money, sex, ...)