(self,topicID , msg, sendList)
主动推送消息
主动推送消息
主动推送消息
def pushObject(self,topicID , msg, sendList):
        """主动推送消息
        """
        for target in sendList:
            try:
                conn = self.getConnectionByID(target)
                if conn:
                    conn.safeToWriteData(topicID,msg)
            except Exception,e:
                log.err(e,traceback.format_exc())
def pushObject ( self , topicID , msg , sendList ) : for target in sendList : try : conn = self . getConnectionByID ( target ) if conn : conn . safeToWriteData ( topicID , msg ) except Exception , e : log . err ( e , traceback . format_exc ( ) )