Skip to content
tongPublic

About

Haxe XMPP library

Topics

Resources

Stars

66 stars

Watchers

12 watching

Forks

Repository files navigation

HXMPP

Haxe XMPP client/component library.

The Extensible Messaging and Presence Protocol is an open technology for real-time communication, which powers a wide range of applications including instant messaging, presence, multi-party chat, voice and video calls, collaboration, lightweight middleware, content syndication, and generalized routing of XML data. The XMPP protocols are free, open, public, and easily understandable.

test haxelib

Install

haxelib install hxmpp

Requires Haxe 4.3.7 or later.

Usage

See example/App.hx for a basic client (connect, TLS, login, roster, messages) on sys targets, and example/App.js.hx for nodejs.

For WebSocket connections (e.g. browser clients) set stream.framing = true, see xmpp.net.WebSocket. For HTTP connections (BOSH) attach the stream to a xmpp.net.BOSH session.

External server components (XEP-0114) use xmpp.component.Stream.

Specifications

  • RFC 6120 XMPP Core
  • RFC 6121 XMPP Instant Messaging and Presence
  • RFC 7622 XMPP Address Format
  • RFC 5122 Internationalized Resource Identifiers (IRIs) and Uniform Resource Identifiers (URIs) for XMPP
  • RFC 7395 XMPP Subprotocol for WebSocket

Extensions

XEP Name Module
XEP-0004 Data Forms xmpp.DataForm
XEP-0012 Last Activity xmpp.LastActivity
XEP-0030 Service Discovery xmpp.ServiceDiscovery
XEP-0045 Multi-User Chat xmpp.Muc
XEP-0047 In-Band Bytestreams xmpp.JingleIBB, xmpp.IBBytestream (experimental)
XEP-0049 Private XML Storage xmpp.PrivateStorage
XEP-0050 Ad-Hoc Commands xmpp.AdHocCommand
XEP-0054 vcard-temp xmpp.VCard
XEP-0059 Result Set Management xmpp.ResultSet
XEP-0060 Publish-Subscribe xmpp.PubSub
XEP-0065 SOCKS5 Bytestreams (with Jingle) xmpp.JingleS5B
XEP-0066 Out of Band Data xmpp.Oob
XEP-0077 In-Band Registration xmpp.client.Account
XEP-0080 User Location xmpp.Pep
XEP-0084 User Avatar xmpp.UserAvatar
XEP-0085 Chat State Notifications xmpp.ChatState
XEP-0092 Software Version xmpp.SoftwareVersion
XEP-0106 JID Escaping xmpp.Jid
XEP-0107 User Mood xmpp.Pep
XEP-0108 User Activity xmpp.Pep
XEP-0114 Jabber Component Protocol xmpp.component.Stream
XEP-0115 Entity Capabilities xmpp.EntityCapabilities
XEP-0118 User Tune xmpp.Pep
XEP-0124 Bidirectional-streams Over Synchronous HTTP (BOSH) xmpp.net.BOSH
XEP-0153 vCard-Based Avatars xmpp.VCardAvatar
XEP-0163 Personal Eventing Protocol xmpp.Pep
XEP-0166 Jingle xmpp.Jingle
XEP-0167 Jingle RTP Sessions (with ICE-UDP, DTLS-SRTP, grouping) xmpp.JingleRtp
XEP-0172 User Nickname xmpp.client.Nickname
XEP-0184 Message Delivery Receipts xmpp.DeliveryReceipts
XEP-0191 Blocking Command xmpp.Block
XEP-0198 Stream Management xmpp.StreamManagement
XEP-0199 XMPP Ping xmpp.Ping
XEP-0202 Entity Time xmpp.EntityTime
XEP-0203 Delayed Delivery xmpp.DelayedDelivery
XEP-0206 XMPP Over BOSH xmpp.net.BOSH
XEP-0215 External Service Discovery xmpp.ExternalServices
XEP-0224 Attention xmpp.Attention
XEP-0231 Bits of Binary xmpp.Bob
XEP-0234 Jingle File Transfer (file offers) xmpp.JingleFileTransfer
XEP-0260 Jingle SOCKS5 Bytestreams Transport Method xmpp.JingleS5B
XEP-0261 Jingle In-Band Bytestreams Transport Method xmpp.JingleIBB
XEP-0280 Message Carbons xmpp.Carbons
XEP-0308 Last Message Correction xmpp.LastMessageCorrection
XEP-0313 Message Archive Management xmpp.MessageArchiveManagement
XEP-0329 File Information Sharing xmpp.FileSharing
XEP-0352 Client State Indication xmpp.client.StateIndication
XEP-0353 Jingle Message Initiation xmpp.JingleMessage
XEP-0359 Unique and Stable Stanza IDs xmpp.StanzaId
XEP-0363 HTTP File Upload xmpp.HttpFileUpload
XEP-0384 OMEMO Encryption (0.3, without the cryptography) xmpp.Omemo
XEP-0393 Message Styling xmpp.MessageStyling
XEP-0402 PEP Native Bookmarks xmpp.Bookmarks
XEP-0421 Occupant identifiers for semi-anonymous MUCs xmpp.OccupantId
XEP-0424 Message Retraction xmpp.MessageRetraction
XEP-0425 Moderated Message Retraction xmpp.MessageModeration
XEP-0428 Fallback Indication xmpp.Fallback
XEP-0444 Message Reactions xmpp.MessageReactions
XEP-0461 Message Replies xmpp.MessageReply

Tests

haxelib dev hxmpp .
haxelib git utest https://github.com/haxe-utest/utest
haxe test.hxml                # run on interp
haxe --cwd test build-hl.hxml # build for other targets (test/build-*.hxml)
hl test/bin/unit.hl

License

MIT

About

Haxe XMPP library

Topics

Resources

Stars

66 stars

Watchers

12 watching

Forks

Releases

Used by

Contributors

Languages