def onMessage(self, payload, isBinary):
        print("Digest for frame {} computed by server: {}".format(self.count, payload.decode('utf8')))
        self.count += 1

        if self.count < FRAME_COUNT:
            self.sendOneFrame()
        elif not self.finished:
            self.endMessage()
            self.finished = True

        if self.count >= FRAME_COUNT:
            self.sendClose()
dataset/ETHPy150Open crossbario/autobahn-python/examples/twisted/websocket/streaming/frame_based_client.py/FrameBasedHashClientProtocol.onMessage/original