コード例 #1
0
 def on_ping_request(self):
     'handler when ping request received'
     self.pings += 1
     self.conn.send_command(Protocol.pong_response())
コード例 #2
0
ファイル: heartbeat.py プロジェクト: PyHUBKyiv/python-nats
 def on_ping_request(self):
     'handler when ping request received'
     self.pings += 1
     self.conn.send_command(Protocol.pong_response())
コード例 #3
0
ファイル: test_unit.py プロジェクト: eodreports/python-nats
 def test_pong_response(self):
     'should return the pong protocol'
     self.assertEqual(Protocol.pong_response(), 'PONG\r\n')
コード例 #4
0
ファイル: test_unit.py プロジェクト: PyHUBKyiv/python-nats
 def test_pong_response(self):
     'should return the pong protocol'
     self.assertEqual(Protocol.pong_response(), 'PONG\r\n')