def onMessage(self, payload, binary): self.test.result.log.append((perf_counter(), self.factory.peerIndex, self.session_id, '<pre class="wamp">RX <= %s</pre>' % payload)) WampCraClientProtocol.onMessage(self, payload, binary)
def sendMessage(self, payload): self.factory.log('<pre class="wamp">TX => %s</pre>' % payload) WampCraClientProtocol.sendMessage(self, payload)
def onMessage(self, payload, binary): self.factory.log('<pre class="wamp">RX <= %s</pre>' % payload) WampCraClientProtocol.onMessage(self, payload, binary)
def connectionMade(self): if self.factory.options.verbose: sys.stdout.write(" .. (1) connected ..") WampCraClientProtocol.connectionMade(self)
def connectionMade(self): if not self.factory.options['json']: print "connected." WampCraClientProtocol.connectionMade(self)