

def onMessage(self, payload, isBinary):
    if (not isBinary):
        res = json.loads(payload.decode('utf8'))
        print('Result received: {}'.format(res))
        self.sendClose()

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