Search the web
Sign In
New User? Sign Up
radio-dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Jabber .7   Message List  
Reply | Forward Message #5379 of 8443 |
I've recently released version .7 of the Jabber framework. The
radio-dev-worthy news for this release is the beginning of an event
notification system, where you can register scripts for the system to
call when certain things happen, like the framework receives a message
or a presence event.

This means that this is a good time to grab the framework and start
actually playing with it. ;-) For instance, here's an echoing message
handler:

on echo(from, type, body, subject, thread)
{
jabber.messages.message(connectionReference, from, body, subject:
subject, type: type, thread:thread );
}

and to register the callback,

conRef = jabber.openConnection();
jabber.registerHandler(conRef, "message", @echo);

Of course, "@echo" must point somewhere global.

Bot writing is now possible, and as easy as I can possibly make it. ;-)

Documentation is, as always, at http://127.0.0.1:5335/Jabber . Other
changes have been made; consult http://127.0.0.1:5335/Jabber/changes .

If you want to be wacky, you could try this:

on toWeblog(from, type, body, subject, thread)
{
radio.weblog.post(body);
radio.weblog.publish();
}

jabber.registerHandler(conRef, "message", @toWeblog);

But I'd recommend against advertising that; it's a little light on
security, to say the least. ;-)




Thu Mar 14, 2002 11:19 pm

jerfb
Offline Offline
Send Email Send Email

Forward
Message #5379 of 8443 |
Expand Messages Author Sort by Date

I've recently released version .7 of the Jabber framework. The radio-dev-worthy news for this release is the beginning of an event notification system, where...
Jeremy Bowers
jerfb
Offline Send Email
Mar 14, 2002
11:21 pm

... ... Now, we just need to get a Jabber server with conferences shoehorned into a Radio Community Server :) -- l.m.orchard <deus_x@...>...
deus_x
Online Now Send Email
Mar 15, 2002
1:34 am

Can one do multiple private groups on one server with RCS? One could then support multiple workgroups with attendent instant messaging conferences AND logging...
rahul@...
Send Email
Mar 15, 2002
2:27 am

Jeremy, Thanks for the update! what do you think of provding a hook to have a per namespace callback? This isnt very interesting for presence, but for iq...
rahul@...
Send Email
Mar 15, 2002
2:24 am

... It would just be for iq packets, yes. Let me turn the question around: What would you use it for? I'm fine with it, but more interesting uses bump the...
Jeremy Bowers
jerfb
Offline Send Email
Mar 15, 2002
2:58 am

Jeremy, x xan be in messages to, eg. x:roster or x:envelope. I was thinking about iq:browsing, specifically into categories. And I was thinking about iq:oob...
rahul@...
Send Email
Mar 15, 2002
3:39 am

... I understand that reasoning. I have made sure that that sort of thing can be supported without too much hassle. At this point, it's the API design that's...
Jeremy Bowers
jerfb
Offline Send Email
Mar 15, 2002
4:07 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help