[Standards-JIG] Unique room names for JEP-45
remko at el-tramo.be
Fri Jun 16 18:44:01 UTC 2006
JEP-0045 (Multi-User Chat) describes the possibility of creating one-
to-one chats into multi-user-chats, a feature present in most of
today's IM protocols. However, to be able to do this, you need to be
able to find a unique room name to create a new room, which is pretty
complex to construct from the client. You can generate a hash of some
kind, which has a high chance of indeed being unique. However, for
correctness, you still have to account for it not being unique, which
boils down to a trial and error protocol.
How about we extend JEP-45 with support for an extra iq-based query,
which returns a unique room name that the requester can use. For
<iq type='get' from='joanna at chotchkies.com'
<query xmlns="http://jabber.org/protocol/muc#unique" />
<iq type='result' to='joanna at chotchkies.com'
The MUC component would ensure that that roomname stays valid
'forever'. An implementation of this might be based on the SHA1 hash
of the jid+timestamp, or microids, or ...
Of course, since this is an extension, it would be an optional
feature of the MUC component, published in service discovery.
Any thoughts on this ?
More information about the Standards