Subject: PEP Notifications
Hello,
I am trying to implement Personal Eventing Protocol, but I'm having an issue where clients do not receive notifications when a user publishes an event. I'm not sure if I'm missing a step.
What I am currently doing is first sending the capabilities of the client in their initial presence by having the DiscoManager auto send it and show interest in the location+notify event:
This automatically sends the capabilities when my presence is sent:
I then publish an item using the PubSubManager:
This sends out the follwing:
The user receives their own response back, but no other users receive any information after the event is published. Can you tell me if I am doing this correctly?
Thanks,
Jeff
I am trying to implement Personal Eventing Protocol, but I'm having an issue where clients do not receive notifications when a user publishes an event. I'm not sure if I'm missing a step.
What I am currently doing is first sending the capabilities of the client in their initial presence by having the DiscoManager auto send it and show interest in the location+notify event:
- disco.AutoSendCaps = true;
- disco.Node = "http://www.test.com";
- disco.AddFeature("http://jabber.org/protocol/location+notify");
This automatically sends the capabilities when my presence is sent:
- <presence xmlns="jabber:client">
- <show>chat</show>
- <status></status>
- <priority>0</priority>
- <c hash="sha-1" ver="3vRWndC2mEZfFvIM2/ZrIg4oEb4=" node="http://www.test.com" xmlns="http://jabber.org/protocol/caps" />
- </presence>
I then publish an item using the PubSubManager:
This sends out the follwing:
- <iq id="MX_10" type="set" xmlns="jabber:client">
- <pubsub xmlns="http://jabber.org/protocol/pubsub">
- <publish node="http://jabber.org/protocol/location">
- <item>
- <location xmlns="location">
- <locationName>MyLocation</locationName>
- </location>
- </item>
- </publish>
- </pubsub>
- </iq>
The user receives their own response back, but no other users receive any information after the event is published. Can you tell me if I am doing this correctly?
Thanks,
Jeff