def connection_made(self, transport): super().connection_made(transport) transport.write(b'hello, space cadet.\r\n') event_loop.call_soon(transport.close)
def on_naws(self, width, height): super().on_naws(width, height) _waiter.set_result((height, width)) event_loop.call_soon(self.connection_lost, None)