def send(self, message_data: MessageData): self.request_id += 1 message_data.id = self.request_id if not self.transport.is_closing(): self.transport.write(message_data.to_message())
def send(self, message_data: MessageData): self.request_id += 1 message_data.id = self.request_id self.transport.write(message_data.to_message())