powered by Jive Software

Presence for a gateway

I’'m currently working on JEP-100 and was curious how to make my gateway show up as available. If you look at the registration use case, they ask that the gateway register.

Do I simply send a Presence packet? Do I need to say who it’'s from?



After talking to Gato, all components are online once they’‘re registered and the server disco’'s them

Hey Noah,

So users may subscribe to the gateway presence and the gateway should approve the request subscriptions. The server will then send probe presences to the gateway so make sure that the gateway will respond to the probe presences.

Moreover, the server will send a disco#info IQ packet to the gateway when registering the new component. If the gateway answers the disco request with his identity and supported features then the server will add the gateway to the list of disco#items related to the server. This means that when a disco#items request is sent to the server itself then the answer will contain an item with the gateway JID. So clients may then want to send a disco#info to the gateway itself to discover more information.


– Gato