

def onClose(self, wasClean, code, reason):
    if reason:
        print(reason)
    reactor.stop()

dataset/ETHPy150Open crossbario/autobahn-python/examples/twisted/websocket/slowsquare/client.py SlowSquareClientProtocol.onClose/original