def publish(self,message,message_type,topic='<STR_LIT>'):
if message_type == MULTIPART:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>super(Publisher,self).send(message,message_type,topic)<EOL>
Publish the message on the PUB socket with the given topic name.

Args:
    - message: the message to publish
    - message_type: the type of message being sent
    - topic: the topic on which to send the message. Defaults to ''.