<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def publish(self, tag, message):
 """ Publish a message down the socket """

        payload = self.build_payload(tag, message)
        self.socket.send(payload)