FW: Receiving pubsub events
From: "'Jeff Muller'" <jmuller@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 13 Jan 2011 21:51:23 +0100 (CET)
 

 

From: Jeff Muller [mailto:jeff@xxxxxxxxxx] 
Sent: Thursday, January 13, 2011 1:25 PM
To: 'gloox-dev@xxxxxxxxxx'
Subject: Receiving pubsub events

 

I can't quite figure out how to receive pubsub events.

 

We use 

 

client->registerStanzaExtension(new gloox::PubSub::Event(NULL)); 

 

in order to support the events.

 

We also call

 

        eventFilter = new gloox::MessageEventFilter(session);

        eventFilter->registerMessageEventHandler(this);

 

but that only seems to apply specifically to MessageEvents, not to any
message event subtypes.

 

We finally had to locally modify messagesession.cpp to also call
handleMessage() if msg.extensions() was not empty.

 

But I gotta believe there's a better way. What are we missing???

 

Thanks,

Jeff Muller

Vgo Communications

Vgo Communications in the Boston Globe
<http://www.boston.com/business/technology/articles/2010/05/30/robot_aims_to
_be_conversation_starter/> 

Vgo on YouTube <http://www.youtube.com/results?search_query=vgo+robot&aq=f>