upcall, 2.7-friendly

This commit is contained in:
meejah 2021-04-02 20:33:57 -06:00
parent 45c09fdd05
commit 2d506de55a

View File

@ -83,9 +83,11 @@ class ServerBase:
def connectionMade(self):
self.connected = True
return Protocol.connectionMade(self)
def connectionLost(self, reason):
self.connected = False
return Protocol.connectionLost(self, reason)
def send(self, data):
self.transport.write(data)