Example #1
0
    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())
Example #2
0
    def send(self, message_data: MessageData):
        self.request_id += 1

        message_data.id = self.request_id

        self.transport.write(message_data.to_message())