saggim / sleekpubsub Goto Github PK
View Code? Open in Web Editor NEWThis project forked from fritzy/sleekpubsub
Publish-Subscribe Component w/ XMPP, REST, and Ad-hoc interfaces
This project forked from fritzy/sleekpubsub
Publish-Subscribe Component w/ XMPP, REST, and Ad-hoc interfaces
SleekPubsub is an XMPP Publish-Subscribe implementation that aims to be a creative and flexible solution to your publish-subscribe needs. SleekPubsub implements a XEP-0060 interface, an HTTP RESTful interface, a XEP-0050 (Ad Hoc Commands) interface, and a bot/chat interface. Credits ------- Author: Nathan Fritz jid: xmpp:[email protected] Contributors: Michael Garvin Unusual Features ---------------- - many node types -- start by overriding leaf and create your own behavior - <body xmlns='jabber:client' /> payloads can optionally create chat IM without pubsub payload. - subscribe to the component and it can automatically subscribe you to a node - subscribe to a node and the full jid that you subscribe to can be the source of all of your updates, rather than the bare component jid RESTful Interface ----------------- All HTTP calls are protected with http-auth which is configured in the ini [rest] section So far: GET /default/ get the default config in json POST /node/[node] create or reconfigure node w/ config via json GET /node/[node] retrieve config in json DELETE /node/[node] remove a node GET /subscribe/[node]?jid=[jid] subscribe a jid to node GET /unsubscribe/[node]?jid=[jid]&subid=[subscription id] unsubscribe a jid from a node POST /publish/[node] publish to a node via xml body GET /affiliation/[node] get node affiliations POST /affiliations/[node] update node affiliations **NOTE: POSTS needs to be content-type of text/json or text/xml Usage: publish_subscribe.py [options] ------------------------------------- Options: -h, --help show this help message and exit --daemon run as daemon -q, --quiet set logging to ERROR -d, --debug set logging to DEBUG -v, --verbose set logging to COMM -c CONFIGFILE, --config=CONFIGFILE set config file to use Requirements ------------ SleekXMPP github master (will tag a release soon) Python 3.x (will make 2.6 compatible soon) Quickstart ---------- See INSTALL file Gotchas ------- - The sqlite3 db will not work if you switch between python2.6 and 3.x
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.