

def onOpen(self):
    x = (10.0 * random.random())
    self.sendMessage(json.dumps(x).encode('utf8'))
    print('Request to square {} sent.'.format(x))

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