def send(self,data): self.write_calls.increment() bytecount = 0 if self._is_connected: bytecount = AsyncChat.send(self, data) self.bytes_out.increment(bytecount) self.server.bytes_out.increment(bytecount) return bytecount
def send(self, data): self.write_calls.increment() bytecount = 0 if self._is_connected: bytecount = AsyncChat.send(self, data) self.bytes_out.increment(bytecount) self.server.bytes_out.increment(bytecount) return bytecount
def send(self, data): self.write_calls.increment() result = AsyncChat.send(self, data) self.bytes_out.increment(result) return result