adds publishing method to spredfast client