?

Log in

No account? Create an account
Posted using LJTalk... - brad's life [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Posted using LJTalk... [Jul. 10th, 2006|12:33 am]
Brad Fitzpatrick
this is a test.  this feels like the LJ clients of yesteryear, back when we had a single-line text box.... no rich text, no multi-line text box, no paragraphs.... no seeing what was at the beginning of your line.  no capitals.  (okay, capitals were allowed, but nobody used them).  i recommend LJ Talk.   that is all.  g
LinkReply

Comments:
From: evan
2006-07-10 08:19 am (UTC)
This brings up a question I had right when gtalk was released, and I never got an answer I was happy with:

If I want to make a bot on LJ, does it need its own jid? Or does the "resource" field let me create evan@livejournal.com/bot? Some people say yes, while others just send IMs to whichever resource was last active...
(Reply) (Thread)
[User Picture]From: brad
2006-07-10 08:24 am (UTC)
When you message somebody in your roster, you send to the "bare JID": evan@livejournal.com.

The server SHOULD then send the message to all available resources.

Once your reply, the reply comes from the full JID: evan@livejournal.com/Home. Then the party that initiated the conversation switches to addressing the full JID.

That's the common and recommended case, but clients can do other things.

But basically you'll need a separate username.
(Reply) (Parent) (Thread)
From: evan
2006-07-10 08:28 am (UTC)
I wonder if the Google-internal Jabber servers do S2S. Then I could run djabberd on my workstation so I can run a bot on the internal IM...

Somehow I doubt it.
(Reply) (Parent) (Thread)
(Deleted comment)
[User Picture]From: brad
2006-07-10 06:50 pm (UTC)
Sorry. It's on our TODO list. We have failing tests (from Wildfire's test suite) that we're hitting there.
(Reply) (Parent) (Thread)
[User Picture]From: mart
2006-07-10 07:00 pm (UTC)

Ahh… that was the bit of spec I was referring to in my response in parallel to yours. I thought I remembered the rules being a bit more concrete than that, but I guess not.

(Reply) (Parent) (Thread)
[User Picture]From: muerte
2006-07-10 03:45 pm (UTC)
My experience with Jabber servers is that they only send the message to the LAST active resource. It would make more sense if they went to *all* but that's not what I've seen. I haven't read the RFC so I'm not sure what the "correct" way is.
(Reply) (Parent) (Thread)
[User Picture]From: mart
2006-07-10 06:54 pm (UTC)

Are you sure the server should send the message to all resources? It's been ages since I read the spec for this, but I'm sure I remember there being some quite complicated rules for selecting one (and only one) resource when delivering messages to a bare JID, which factored in resource priorities, away statuses and so forth.

However, it has to be said that I think the approach of sending the initial message to everyone and letting the user choose is the best one. I'm terrible for accidentally leaving my clients in away or available status when it's not true. For example, my work client is marked available right now even though I'm at home, because I neglected to configure it to auto-away when I wander off…

I think using a separate username is the right approach if the bot is conceptually an entity of its own. The resource might be the right approach if the bot is conceptually “you”, like if you've got a bot that acts as an auto-responder, or a logger, or something.

For my “crazy theoretical” LJ-Jabber stuff I'm saying that mart@livejournal.com represents me the person and mart@journals.livejournal.com represents my journal, the latter of which is a bot of sorts. Then lj_dev@journal.livejournal.com can be — all at the same time — a MUC room, a pubsub node and a message-based posting gateway, but mart@livejournal.com doesn't do anything crazy and is just a person to chat to.

(Reply) (Parent) (Thread)