Skip to content
rondevera edited this page Sep 13, 2010 · 8 revisions

Hemlock and JIDs

The Hemlock framework currently uses 3 different types of JIDs.

  1. Client JID: A client receives a JID when it connects to the service. This JID has the form username@server/resource.
  2. Client Room JID: When a client connects to or creates a room, a new JID is created to represent that user in that room. This JID has the group chat format node@server/nickname.
  3. Bare Room JID: Each group chat room that exists also has a JID, with the format node@server. It is the bare JID that push communications should be addressed to. So, when sending a message or presence—anything that the service should then send along to participating members—these stanzas should be sent to a room’s bare JID.

Clone this wiki locally