A couple of questions about Blather.

40 views
Skip to first unread message

namelessjon

unread,
Aug 1, 2009, 6:29:55 AM8/1/09
to Blather
Hi there

I have a couple of questions about Blather:

1) Does it support automatic reconnections after being disconnected?

2) Does it support tls connections?

Regards,
Jon

Jeff Smick

unread,
Aug 1, 2009, 11:33:51 AM8/1/09
to xmpp-b...@googlegroups.com
Hi Jon,


> 1) Does it support automatic reconnections after being disconnected?

No, but I'll add a new handler that'll be called when the connection
drops. Then you'd be able to use any reconnection algorithm you'd
like.

> 2) Does it support tls connections?

Yep

--Jeff

Jonathan Stott

unread,
Aug 1, 2009, 11:58:12 AM8/1/09
to xmpp-b...@googlegroups.com
On Sat, 1 Aug 2009 08:33:51 -0700
Jeff Smick <sprs...@gmail.com> wrote:

>
> Hi Jon,
>
>
> > 1) Does it support automatic reconnections after being disconnected?
>
> No, but I'll add a new handler that'll be called when the connection
> drops. Then you'd be able to use any reconnection algorithm you'd
> like.
>

Something like that (a new handler) would be ideal, actually.


> > 2) Does it support tls connections?
>
> Yep

That's great.
>
> --Jeff
>

Thanks for the quick replies.

Jeff Smick

unread,
Aug 3, 2009, 1:02:07 AM8/3/09
to xmpp-b...@googlegroups.com
Just added a "disconnected" handler that will be called when a
connection is terminated. I have a few more goodies to add to the next
release before I push it out, but the new functionality has been
pushed to github.

--Jeff

Jonathan Stott

unread,
Aug 11, 2009, 5:55:48 PM8/11/09
to xmpp-b...@googlegroups.com
Hi Jeff

Thanks for that handler. It took me a while to find the time to
rewrite the bot in blather, but nothing was particularly hard once I
did get started. The reconnect handler seems to be working great so
far, too.

Regards,
Jon

Jeff Smick

unread,
Aug 11, 2009, 8:45:48 PM8/11/09
to xmpp-b...@googlegroups.com
Fantastic!

What'd you end up writing?

--Jeff

Jonathan Stott

unread,
Aug 12, 2009, 5:23:53 AM8/12/09
to xmpp-b...@googlegroups.com
Oh, this was rewriting the jabber bot I wrote for notable[1] in
blather, rather than uppercut[2] (though the bot isn't actually pushed
yet). I'm still not sure which I prefer for writing jabber bots. The
uppercut bot generally seemed cleaner, mostly due to it being a class,
and being provided with matches from the guards, but I like parts of
the blather DSL, too.

Regards
Jon

[1] http://github.com/namelessjon/notable/tree
[2] https://github.com/tyler/uppercut/tree

Reply all
Reply to author
Forward
0 new messages