コード例 #1
0
ファイル: async.py プロジェクト: citysir/pynsq
 def _on_message_touch(self, message, **kwargs):
     try:
         self.send(protocol.touch(message.id))
     except Exception, e:
         self.close()
         self.trigger(
             event.ERROR,
             conn=self,
             error=protocol.SendError('failed to send TOUCH %s' % message.id, e),
         )
コード例 #2
0
 def _on_message_touch(self, message, **kwargs):
     try:
         self.send(protocol.touch(message.id))
     except Exception, e:
         self.close()
         self.trigger(
             event.ERROR,
             conn=self,
             error=protocol.SendError('failed to send TOUCH %s' % message.id, e),
         )