In the sample, it looks like the parent url is being set properly in the IFrame URL, so I do not believe that was the issue. We did find that the following change resolved the pubsub issues:
this.serverBase_ = 'http://' + document.location.host+'/gadgets/'; // default gadget server Andy Smith