unexpected hangup

This commit is contained in:
meejah 2021-04-07 16:31:32 -06:00
parent 9b4e9577b3
commit e7b7b4cd6b

View File

@ -43,6 +43,9 @@ class RelayEchoClient(WebSocketClientProtocol):
self.factory.ready.callback(None)
else:
self._received += data
if False:
# test abrupt hangup from receiving side
self.transport.loseConnection()
def onClose(self, wasClean, code, reason):
print(">onClose", wasClean, code, reason)