[ejabberd] anyone ever written a component for ejabberd
ermine at ermine.pp.ru
Mon Nov 3 12:58:15 MSK 2003
On Mon, Nov 03, 2003 at 11:33:30AM +0200, Alexey Shchepin wrote:
> Hello, Marshall!
> MR> i'm thinking of writing my own weather component. ejabberd would
> MR> be what i'd hook into. does ejabberd use the jabberd api or some
> MR> other api?
> You can use jabberd14 component protocol (but without <xdb/> and
> <log/> packets) as defined in JEP-0114. Also you can write it in
> erlang as existing modules, but internal API is not documented yet.
The second way is better and simplest, if you're going really write in
Erlang. You only need register your service and receive already parsed xml
data for processing.
Another way is writting as a module of ejabbers server, but this way is not so
simple for beginners.
More information about the ejabberd