def publish(self, channel, message):
        """Publish message to channel.

        :returns: a coroutine
        """
        if self.cfg.jsonpickle:
            message = jsonpickle.encode(message)
        return self.conn.publish(channel, message)