def onMessage(self, payload, binary):
     session_id = self.session_id if hasattr(self, "session_id") else None
     now = round(1000000 * (time.clock() - self.factory.case.started))
     rec = (now, session_id, "RX", payload)
     self.factory.case.wampLog.append(rec)
     WampClientProtocol.onMessage(self, payload, binary)
Ejemplo n.º 2
0
 def connectionLost(self, reason):
     if self.wscp is not None:
         self.wscp.failConnection()
     WampClientProtocol.connectionLost(self, reason)
Ejemplo n.º 3
0
 def connectionMade(self):
     WampClientProtocol.connectionMade(self)
     self.factory.onConnectionMade.callback(self)
Ejemplo n.º 4
0
 def connectionLost(self, *args):
     WampClientProtocol.connectionLost(self, *args)
     self.factory.onConnectionLost.callback(self)
Ejemplo n.º 5
0
 def connectionLost(self, reason):
     WampClientProtocol.connectionLost(self, reason)